Skip to content

Commit fa156c2

Browse files
committed
Fix mistake
1 parent 26b1f6c commit fa156c2

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_typeck/src/check/fn_ctxt

1 file changed

+1
-0
lines changed

compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
822822
hir::LangItem::TryTraitFromOutput
823823
| hir::LangItem::TryTraitFromResidual
824824
| hir::LangItem::TryTraitBranch => ObligationCauseCode::QuestionMark,
825+
_ => traits::ItemObligation(def_id),
825826
},
826827
);
827828
(Res::Def(def_kind, def_id), ty)

0 commit comments

Comments
 (0)