about summary refs log tree commit diff
path: root/compiler/rustc_infer
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2023-03-21 16:34:04 +0100
committerlcnr <rust@lcnr.de>2023-03-21 16:34:04 +0100
commit938434ab82609c8de83028fa80bde4d6d28c282a (patch)
treea55793a70afa69f1b163ef6bb443dcc3c68152c5 /compiler/rustc_infer
parent47f24a881bb05293c4d922218d9dfed7e29511cd (diff)
downloadrust-938434ab82609c8de83028fa80bde4d6d28c282a.tar.gz
rust-938434ab82609c8de83028fa80bde4d6d28c282a.zip
enable `intercrate` in the solver `InferCtxt`
Diffstat (limited to 'compiler/rustc_infer')
-rw-r--r--compiler/rustc_infer/src/infer/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_infer/src/infer/mod.rs b/compiler/rustc_infer/src/infer/mod.rs
index aeb4ddb4212..ed5fd590934 100644
--- a/compiler/rustc_infer/src/infer/mod.rs
+++ b/compiler/rustc_infer/src/infer/mod.rs
@@ -585,8 +585,8 @@ impl<'tcx> InferCtxtBuilder<'tcx> {
         self
     }
 
-    pub fn intercrate(mut self) -> Self {
-        self.intercrate = true;
+    pub fn intercrate(mut self, intercrate: bool) -> Self {
+        self.intercrate = intercrate;
         self
     }