Skip to content

Commit 26f46e8

Browse files
committed
Replace a use of old_defining_use_anchor with Error (it was always Error)
1 parent 9543b0e commit 26f46e8

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
@@ -424,7 +424,7 @@ pub fn fully_solve_bound<'tcx>(
424424
let trait_ref = tcx.mk_trait_ref(bound, [ty]);
425425
let obligation = Obligation::new(tcx, cause, param_env, ty::Binder::dummy(trait_ref));
426426

427-
fully_solve_obligation(infcx, obligation, infcx.old_defining_use_anchor)
427+
fully_solve_obligation(infcx, obligation, DefiningAnchor::Error)
428428
}
429429

430430
/// Normalizes the predicates and checks whether they hold in an empty environment. If this

0 commit comments

Comments
 (0)