Skip to content

Commit 51d3489

Browse files
committed
Further silence ? errors
1 parent f0608fc commit 51d3489

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
817817
match lang_item {
818818
hir::LangItem::FuturePoll => ObligationCauseCode::AwaitableExpr,
819819
hir::LangItem::IntoIterIntoIter => ObligationCauseCode::ForLoopIterator,
820-
hir::LangItem::TryTraitBranch => ObligationCauseCode::QuestionMark,
820+
hir::LangItem::TryTraitFromResidual | hir::LangItem::TryTraitBranch => {
821+
ObligationCauseCode::QuestionMark
822+
}
821823
_ => traits::ItemObligation(def_id),
822824
},
823825
);

0 commit comments

Comments
 (0)