We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 244a766 commit b37d7a4Copy full SHA for b37d7a4
src/librustc_trans/context.rs
@@ -180,10 +180,7 @@ impl<'tcx> DepTrackingMapConfig for TraitSelectionCache<'tcx> {
180
type Key = ty::PolyTraitRef<'tcx>;
181
type Value = traits::Vtable<'tcx, ()>;
182
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
- })
+ key.to_poly_trait_predicate().dep_node()
187
}
188
189
0 commit comments