Skip to content

Commit 8e97112

Browse files
committed
Remove Compiler::with_stage
1 parent 72167b7 commit 8e97112

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
18781878

18791879
if mode == "rustdoc-json" {
18801880
// Use the stage0 compiler for jsondocck
1881-
let json_compiler = compiler.with_stage(0);
1881+
let json_compiler = builder.compiler(0, builder.host_target);
18821882
cmd.arg("--jsondocck-path")
18831883
.arg(builder.ensure(tool::JsonDocCk { compiler: json_compiler, target }).tool_path);
18841884
cmd.arg("--jsondoclint-path").arg(

src/bootstrap/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,11 +2109,6 @@ impl Compiler {
21092109
self.forced_compiler = forced_compiler;
21102110
}
21112111

2112-
pub fn with_stage(mut self, stage: u32) -> Compiler {
2113-
self.stage = stage;
2114-
self
2115-
}
2116-
21172112
/// Returns `true` if this is a snapshot compiler for `build`'s configuration
21182113
pub fn is_snapshot(&self, build: &Build) -> bool {
21192114
self.stage == 0 && self.host == build.host_target

0 commit comments

Comments
 (0)