Clarify DerivedObligationCause may hold alias id

This commit is contained in:
Alan Egerton 2023-02-16 21:55:53 +00:00
parent a1468ae00d
commit 55d449fe0a
No known key found for this signature in database
GPG key ID: 7D4C2F6C22122532
8 changed files with 16 additions and 12 deletions

View file

@ -2657,7 +2657,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
let cause = cause.clone().derived_cause(parent_trait_pred, |derived| {
ImplDerivedObligation(Box::new(ImplDerivedObligationCause {
derived,
impl_def_id: def_id,
impl_or_alias_def_id: def_id,
impl_def_predicate_index: Some(index),
span,
}))