1
Fork 0

Don't lose an obligation cause

This commit is contained in:
Oli Scherer 2022-05-10 08:50:32 +00:00
parent 312d27d0a2
commit 7e2e3d4ebe
4 changed files with 24 additions and 7 deletions

View file

@ -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,