diff options
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/project.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/project.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/project.rs b/compiler/rustc_trait_selection/src/traits/project.rs index 5cffd1fe8ee..e99ecff44f9 100644 --- a/compiler/rustc_trait_selection/src/traits/project.rs +++ b/compiler/rustc_trait_selection/src/traits/project.rs @@ -576,7 +576,7 @@ pub fn normalize_inherent_projection<'a, 'b, 'tcx>( if span.is_dummy() { ObligationCauseCode::MiscItem(alias_ty.def_id) } else { - ObligationCauseCode::Where(alias_ty.def_id, span) + ObligationCauseCode::SpannedItem(alias_ty.def_id, span) }, ); @@ -2129,7 +2129,7 @@ fn assoc_ty_own_obligations<'cx, 'tcx>( ObligationCause::new( obligation.cause.span, obligation.cause.body_id, - ObligationCauseCode::Where(obligation.predicate.def_id, span), + ObligationCauseCode::SpannedItem(obligation.predicate.def_id, span), ) }; nested.push(Obligation::with_depth( |
