File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -524,8 +524,7 @@ impl Step for Rustfmt {
524524
525525 /// Runs `cargo test` for rustfmt.
526526 fn run ( self , builder : & Builder < ' _ > ) {
527- let tool_result = builder. ensure ( tool:: Rustfmt :: from_compilers ( self . compilers ) ) ;
528- let build_compiler = tool_result. build_compiler ;
527+ let build_compiler = self . compilers . build_compiler ( ) ;
529528 let target = self . compilers . target ( ) ;
530529
531530 let mut cargo = tool:: prepare_tool_cargo (
@@ -869,11 +868,9 @@ impl Step for Clippy {
869868 // We need to carefully distinguish the compiler that builds clippy, and the compiler
870869 // that is linked into the clippy being tested. `target_compiler` is the latter,
871870 // and it must also be used by clippy's test runner to build tests and their dependencies.
872- let compilers = self . compilers ;
873- let target_compiler = compilers. target_compiler ( ) ;
871+ let target_compiler = self . compilers . target_compiler ( ) ;
872+ let build_compiler = self . compilers . build_compiler ( ) ;
874873
875- let tool_result = builder. ensure ( tool:: Clippy :: from_compilers ( compilers) ) ;
876- let build_compiler = tool_result. build_compiler ;
877874 let mut cargo = tool:: prepare_tool_cargo (
878875 builder,
879876 build_compiler,
You can’t perform that action at this time.
0 commit comments