X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Ftool.rs;h=ba329ea6c759286e37140469dded952b5dcf2850;hb=73f01ffd4642cf7794d88a03977108d0ffceacd1;hp=d395220694705e7c6c6c586df1bbdc98c88936ac;hpb=0aaad9e757207657064d70bf9e6c1e6eb327bf15;p=rust.git diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index d3952206947..ba329ea6c75 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -522,7 +522,7 @@ fn run(self, builder: &Builder<'_>) -> PathBuf { builder.ensure(compile::Rustc::new(build_compiler, target_compiler.host)); // NOTE: this implies that `download-rustc` is pretty useless when compiling with the stage0 // compiler, since you do just as much work. - if !builder.config.dry_run && builder.download_rustc() && build_compiler.stage == 0 { + if !builder.config.dry_run() && builder.download_rustc() && build_compiler.stage == 0 { println!( "warning: `download-rustc` does nothing when building stage1 tools; consider using `--stage 2` instead" );