Remove Compiler::with_stage

This commit is contained in:
Jakub Beránek 2025-08-20 20:39:15 +02:00
parent 72167b726c
commit 8e97112ba8
No known key found for this signature in database
GPG key ID: 909CD0D26483516B
2 changed files with 1 additions and 6 deletions

View file

@ -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(

View file

@ -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