Skip to content

Commit c7c4f24

Browse files
committed
Replace another old_defining_use_anchor with error
It was only used in error paths or places already using `DefiningAchor::Error` already
1 parent 26f46e8 commit c7c4f24

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/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ fn pred_known_to_hold_modulo_regions<'tcx>(
170170
// The handling of regions in this area of the code is terrible,
171171
// see issue #29149. We should be able to improve on this with
172172
// NLL.
173-
let errors = fully_solve_obligation(infcx, obligation, infcx.old_defining_use_anchor);
173+
let errors = fully_solve_obligation(infcx, obligation, DefiningAnchor::Error);
174174

175175
match &errors[..] {
176176
[] => true,

0 commit comments

Comments
 (0)