Further silence ? errors

This commit is contained in:
Esteban Kuber 2021-11-16 02:27:18 +00:00
parent caf0c1bb1c
commit 81a3b90afd

View file

@ -811,7 +811,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
match lang_item {
hir::LangItem::FuturePoll => ObligationCauseCode::AwaitableExpr,
hir::LangItem::IntoIterIntoIter => ObligationCauseCode::ForLoopIterator,
hir::LangItem::TryTraitBranch => ObligationCauseCode::QuestionMark,
hir::LangItem::TryTraitFromResidual | hir::LangItem::TryTraitBranch => {
ObligationCauseCode::QuestionMark
}
_ => traits::ItemObligation(def_id),
},
);