about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-08-20 20:39:15 +0200
committerJakub Beránek <berykubik@gmail.com>2025-09-01 08:52:05 +0200
commit8e97112ba83c97891bcaafa13f099bd22ccd29f8 (patch)
treeb27101f0d029924ffa9d8b329ce40c6cc03947b3 /src/bootstrap
parent72167b726c49776b01cd84552ed90761a839ee7b (diff)
downloadrust-8e97112ba83c97891bcaafa13f099bd22ccd29f8.tar.gz
rust-8e97112ba83c97891bcaafa13f099bd22ccd29f8.zip
Remove `Compiler::with_stage`
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/core/build_steps/test.rs2
-rw-r--r--src/bootstrap/src/lib.rs5
2 files changed, 1 insertions, 6 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs
index 295ebfc3638..3938c640321 100644
--- a/src/bootstrap/src/core/build_steps/test.rs
+++ b/src/bootstrap/src/core/build_steps/test.rs
@@ -1878,7 +1878,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
 
         if mode == "rustdoc-json" {
             // Use the stage0 compiler for jsondocck
-            let json_compiler = compiler.with_stage(0);
+            let json_compiler = builder.compiler(0, builder.host_target);
             cmd.arg("--jsondocck-path")
                 .arg(builder.ensure(tool::JsonDocCk { compiler: json_compiler, target }).tool_path);
             cmd.arg("--jsondoclint-path").arg(
diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs
index 9a882eae08e..2108f3b8cf5 100644
--- a/src/bootstrap/src/lib.rs
+++ b/src/bootstrap/src/lib.rs
@@ -2109,11 +2109,6 @@ impl Compiler {
         self.forced_compiler = forced_compiler;
     }
 
-    pub fn with_stage(mut self, stage: u32) -> Compiler {
-        self.stage = stage;
-        self
-    }
-
     /// Returns `true` if this is a snapshot compiler for `build`'s configuration
     pub fn is_snapshot(&self, build: &Build) -> bool {
         self.stage == 0 && self.host == build.host_target