Skip to content

Commit

Permalink
auto merge of #4896 : pcwalton/rust/move-speedup, r=pcwalton
Browse files Browse the repository at this point in the history
r? @nikomatsakis 

When you made the change to fix kinds in recursion, you stopped looking in the master cache. This patch fixes it.
  • Loading branch information
bors committed Feb 13, 2013
2 parents 6727c6f + a165f88 commit 1a394e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustc/middle/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1932,6 +1932,10 @@ pub fn type_contents(cx: ctxt, ty: t) -> TypeContents {
Some(tc) => { return *tc; }
None => {}
}
match cx.tc_cache.find(&ty_id) { // Must check both caches!
Some(tc) => { return *tc; }
None => {}
}
cache.insert(ty_id, TC_NONE);
debug!("computing contents of %s", ty_to_str(cx, ty));
Expand Down

0 comments on commit 1a394e5

Please sign in to comment.