]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_infer/src/infer/equate.rs
Auto merge of #105094 - Swatinem:generator-not-future, r=compiler-errors
[rust.git] / compiler / rustc_infer / src / infer / equate.rs
index 59728148a84c43e8023a2f580d5193849e22fab1..8682f4d3b7aed970783395d50e8ca09a8b648d64 100644 (file)
@@ -32,6 +32,10 @@ fn tcx(&self) -> TyCtxt<'tcx> {
         self.fields.tcx()
     }
 
+    fn intercrate(&self) -> bool {
+        self.fields.infcx.intercrate
+    }
+
     fn param_env(&self) -> ty::ParamEnv<'tcx> {
         self.fields.param_env
     }
@@ -40,6 +44,10 @@ fn a_is_expected(&self) -> bool {
         self.a_is_expected
     }
 
+    fn mark_ambiguous(&mut self) {
+        self.fields.mark_ambiguous();
+    }
+
     fn relate_item_substs(
         &mut self,
         _item_def_id: DefId,