@@ -84,21 +84,19 @@ pub fn setup(s: Scenario, f: &Fn(&Config)) {
8484
8585 let current_exe_path = env:: current_exe ( ) . map ( PathBuf :: from) . unwrap ( ) ;
8686 let exe_dir = current_exe_path. parent ( ) . unwrap ( ) ;
87- let ref multirust_build_path = exe_dir. join ( format ! ( "rustup-setup{}" , EXE_SUFFIX ) ) ;
87+ let ref build_path = exe_dir. join ( format ! ( "rustup-setup{}" , EXE_SUFFIX ) ) ;
8888
89- let ref multirust_path = config. exedir . join ( format ! ( "multirust{}" , EXE_SUFFIX ) ) ;
90- let setup_path = config. exedir . join ( format ! ( "multirust-setup{}" , EXE_SUFFIX ) ) ;
89+ let ref rustup_path = config. exedir . join ( format ! ( "rustup{}" , EXE_SUFFIX ) ) ;
90+ let setup_path = config. exedir . join ( format ! ( "rustup-setup{}" , EXE_SUFFIX ) ) ;
91+ let multirust_setup_path = config. exedir . join ( format ! ( "multirust-setup{}" , EXE_SUFFIX ) ) ;
9192 let rustc_path = config. exedir . join ( format ! ( "rustc{}" , EXE_SUFFIX ) ) ;
9293 let cargo_path = config. exedir . join ( format ! ( "cargo{}" , EXE_SUFFIX ) ) ;
93- let rustup_setup_path = config. exedir . join ( format ! ( "rustup-setup{}" , EXE_SUFFIX ) ) ;
94- let rustup_path = config. exedir . join ( format ! ( "rustup{}" , EXE_SUFFIX ) ) ;
95-
96- fs:: copy ( multirust_build_path, multirust_path) . unwrap ( ) ;
97- fs:: hard_link ( multirust_path, rustc_path) . unwrap ( ) ;
98- fs:: hard_link ( multirust_path, setup_path) . unwrap ( ) ;
99- fs:: hard_link ( multirust_path, cargo_path) . unwrap ( ) ;
100- fs:: hard_link ( multirust_path, rustup_setup_path) . unwrap ( ) ;
101- fs:: hard_link ( multirust_path, rustup_path) . unwrap ( ) ;
94+
95+ fs:: copy ( build_path, rustup_path) . unwrap ( ) ;
96+ fs:: hard_link ( rustup_path, setup_path) . unwrap ( ) ;
97+ fs:: hard_link ( rustup_path, multirust_setup_path) . unwrap ( ) ;
98+ fs:: hard_link ( rustup_path, rustc_path) . unwrap ( ) ;
99+ fs:: hard_link ( rustup_path, cargo_path) . unwrap ( ) ;
102100
103101 // Create some custom toolchains
104102 create_custom_toolchains ( & config. customdir ) ;
0 commit comments