Skip to content

Commit 81a3b90

Browse files
committed
Further silence ? errors
1 parent caf0c1b commit 81a3b90

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
@@ -811,7 +811,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
811811
match lang_item {
812812
hir::LangItem::FuturePoll => ObligationCauseCode::AwaitableExpr,
813813
hir::LangItem::IntoIterIntoIter => ObligationCauseCode::ForLoopIterator,
814-
hir::LangItem::TryTraitBranch => ObligationCauseCode::QuestionMark,
814+
hir::LangItem::TryTraitFromResidual | hir::LangItem::TryTraitBranch => {
815+
ObligationCauseCode::QuestionMark
816+
}
815817
_ => traits::ItemObligation(def_id),
816818
},
817819
);

0 commit comments

Comments
 (0)