Skip to content

Commit 1a394e5

Browse files
committed
auto merge of rust-lang#4896 : pcwalton/rust/move-speedup, r=pcwalton
r? @nikomatsakis When you made the change to fix kinds in recursion, you stopped looking in the master cache. This patch fixes it.
2 parents 6727c6f + a165f88 commit 1a394e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc/middle/ty.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1932,6 +1932,10 @@ pub fn type_contents(cx: ctxt, ty: t) -> TypeContents {
19321932
Some(tc) => { return *tc; }
19331933
None => {}
19341934
}
1935+
match cx.tc_cache.find(&ty_id) { // Must check both caches!
1936+
Some(tc) => { return *tc; }
1937+
None => {}
1938+
}
19351939
cache.insert(ty_id, TC_NONE);
19361940
19371941
debug!("computing contents of %s", ty_to_str(cx, ty));

0 commit comments

Comments
 (0)