Skip to content

Commit b37d7a4

Browse files
trans::context: Remove some tcx::tls wackiness
1 parent 244a766 commit b37d7a4

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
@@ -180,10 +180,7 @@ impl<'tcx> DepTrackingMapConfig for TraitSelectionCache<'tcx> {
180180
type Key = ty::PolyTraitRef<'tcx>;
181181
type Value = traits::Vtable<'tcx, ()>;
182182
fn to_dep_node(key: &ty::PolyTraitRef<'tcx>) -> DepNode<DefId> {
183-
ty::tls::with(|tcx| {
184-
let lifted_key = tcx.lift(key).unwrap();
185-
lifted_key.to_poly_trait_predicate().dep_node()
186-
})
183+
key.to_poly_trait_predicate().dep_node()
187184
}
188185
}
189186

0 commit comments

Comments
 (0)