]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_traits/src/chalk/db.rs
Make rustc build with new chalk
[rust.git] / compiler / rustc_traits / src / chalk / db.rs
index 07f92299f72b43326f5195dd87fbe87e9ae704de..d15707e5ceddb694b16f2fc4aee5d90bbca99d7d 100644 (file)
@@ -142,6 +142,8 @@ fn trait_datum(
             Some(CoerceUnsized)
         } else if lang_items.dispatch_from_dyn_trait() == Some(def_id) {
             Some(DispatchFromDyn)
+        } else if lang_items.tuple_trait() == Some(def_id) {
+            Some(Tuple)
         } else {
             None
         };
@@ -570,6 +572,7 @@ fn well_known_trait_id(
             CoerceUnsized => lang_items.coerce_unsized_trait(),
             DiscriminantKind => lang_items.discriminant_kind_trait(),
             DispatchFromDyn => lang_items.dispatch_from_dyn_trait(),
+            Tuple => lang_items.tuple_trait(),
         };
         def_id.map(chalk_ir::TraitId)
     }