Skip to content

Commit 00eabcb

Browse files
trans::context: Remove some tcx::tls wackiness
1 parent 86a691a commit 00eabcb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc_trans/context.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,7 @@ impl<'tcx> DepTrackingMapConfig for TraitSelectionCache<'tcx> {
183183
type Key = ty::PolyTraitRef<'tcx>;
184184
type Value = traits::Vtable<'tcx, ()>;
185185
fn to_dep_node(key: &ty::PolyTraitRef<'tcx>) -> DepNode<DefId> {
186-
ty::tls::with(|tcx| {
187-
let lifted_key = tcx.lift(key).unwrap();
188-
lifted_key.to_poly_trait_predicate().dep_node()
189-
})
186+
key.to_poly_trait_predicate().dep_node()
190187
}
191188
}
192189

0 commit comments

Comments
 (0)