Skip to content

Commit

Permalink
Use ExprItemObligation and ExprBindingObligation too
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Aug 24, 2022
1 parent d464d3a commit 8189a45
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,9 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> {
);
let code = error.obligation.cause.code().peel_derives().peel_match_impls();
if let ObligationCauseCode::BindingObligation(..)
| ObligationCauseCode::ItemObligation(..) = code
| ObligationCauseCode::ItemObligation(..)
| ObligationCauseCode::ExprBindingObligation(..)
| ObligationCauseCode::ExprItemObligation(..) = code
{
self.note_obligation_cause_code(
&mut diag,
Expand Down

0 comments on commit 8189a45

Please sign in to comment.