Skip to content

Commit

Permalink
trans::context: Remove some tcx::tls wackiness
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed May 9, 2016
1 parent 86a691a commit 00eabcb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/librustc_trans/context.rs
Expand Up @@ -183,10 +183,7 @@ impl<'tcx> DepTrackingMapConfig for TraitSelectionCache<'tcx> {
type Key = ty::PolyTraitRef<'tcx>;
type Value = traits::Vtable<'tcx, ()>;
fn to_dep_node(key: &ty::PolyTraitRef<'tcx>) -> DepNode<DefId> {
ty::tls::with(|tcx| {
let lifted_key = tcx.lift(key).unwrap();
lifted_key.to_poly_trait_predicate().dep_node()
})
key.to_poly_trait_predicate().dep_node()
}
}

Expand Down

0 comments on commit 00eabcb

Please sign in to comment.