Don't lose an obligation cause
This commit is contained in:
parent
312d27d0a2
commit
7e2e3d4ebe
4 changed files with 24 additions and 7 deletions
|
@ -309,8 +309,6 @@ impl<'a, 'tcx> WfPredicates<'a, 'tcx> {
|
|||
}
|
||||
.into()
|
||||
});
|
||||
} else {
|
||||
cause = traits::ObligationCause::misc(self.span, self.body_id);
|
||||
}
|
||||
extend_cause_with_original_assoc_item_obligation(
|
||||
tcx, trait_ref, item, &mut cause, predicate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue