about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEsteban Kuber <esteban@kuber.com.ar>2021-11-16 03:04:36 +0000
committerEsteban Kuber <esteban@kuber.com.ar>2021-12-13 17:09:15 +0000
commitd45e030c04c19ce9c14787a793fd2e32674814d7 (patch)
treeeb793fa5e74fb3da71afca3d051b26c4abd95699
parent4f2b1c06506cc1277edf4fa46ed84f4e9e9dc671 (diff)
downloadrust-d45e030c04c19ce9c14787a793fd2e32674814d7.tar.gz
rust-d45e030c04c19ce9c14787a793fd2e32674814d7.zip
Fix mistake
-rw-r--r--compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs1
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)