Remove Compiler::with_stage
This commit is contained in:
parent
72167b726c
commit
8e97112ba8
2 changed files with 1 additions and 6 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue