diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2021-11-16 03:04:36 +0000 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2021-12-13 17:09:15 +0000 |
| commit | d45e030c04c19ce9c14787a793fd2e32674814d7 (patch) | |
| tree | eb793fa5e74fb3da71afca3d051b26c4abd95699 | |
| parent | 4f2b1c06506cc1277edf4fa46ed84f4e9e9dc671 (diff) | |
| download | rust-d45e030c04c19ce9c14787a793fd2e32674814d7.tar.gz rust-d45e030c04c19ce9c14787a793fd2e32674814d7.zip | |
Fix mistake
| -rw-r--r-- | compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs b/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs index b1d98a48057..b437d4c5c2e 100644 --- a/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs +++ b/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs @@ -816,6 +816,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { hir::LangItem::TryTraitFromOutput | hir::LangItem::TryTraitFromResidual | hir::LangItem::TryTraitBranch => ObligationCauseCode::QuestionMark, + _ => traits::ItemObligation(def_id), }, ); (Res::Def(def_kind, def_id), ty) |
