Skip to content

Commit d0f6215

Browse files
committed
Avoid using the old anchor in new_in_snapshot
1 parent 379c5ac commit d0f6215

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/traits/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<'a, 'tcx> ObligationCtxt<'a, 'tcx> {
6868
Self {
6969
infcx,
7070
engine: RefCell::new(<dyn TraitEngine<'_>>::new_in_snapshot(infcx.tcx)),
71-
defining_use_anchor: infcx.old_defining_use_anchor,
71+
defining_use_anchor: DefiningAnchor::Error,
7272
}
7373
}
7474

0 commit comments

Comments
 (0)