We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86a691a commit 00eabcbCopy full SHA for 00eabcb
src/librustc_trans/context.rs
@@ -183,10 +183,7 @@ impl<'tcx> DepTrackingMapConfig for TraitSelectionCache<'tcx> {
183
type Key = ty::PolyTraitRef<'tcx>;
184
type Value = traits::Vtable<'tcx, ()>;
185
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
- })
+ key.to_poly_trait_predicate().dep_node()
190
}
191
192
0 commit comments