@@ -18,7 +18,6 @@ use itertools::Itertools;
18
18
use la_arena:: ArenaMap ;
19
19
use paths:: { AbsPath , AbsPathBuf } ;
20
20
use rustc_hash:: { FxHashMap , FxHashSet } ;
21
- use semver:: Version ;
22
21
use serde:: Deserialize ;
23
22
use toolchain:: Tool ;
24
23
@@ -64,10 +63,8 @@ impl WorkspaceBuildScripts {
64
63
config : & CargoConfig ,
65
64
allowed_features : & FxHashSet < String > ,
66
65
manifest_path : & ManifestPath ,
67
- toolchain : Option < & Version > ,
68
66
sysroot : & Sysroot ,
69
67
) -> io:: Result < Command > {
70
- const RUST_1_75 : Version = Version :: new ( 1 , 75 , 0 ) ;
71
68
let mut cmd = match config. run_build_script_command . as_deref ( ) {
72
69
Some ( [ program, args @ ..] ) => {
73
70
let mut cmd = Command :: new ( program) ;
@@ -122,9 +119,7 @@ impl WorkspaceBuildScripts {
122
119
cmd. arg ( "-Zscript" ) ;
123
120
}
124
121
125
- if toolchain. map_or ( false , |it| * it >= RUST_1_75 ) {
126
- cmd. arg ( "--keep-going" ) ;
127
- }
122
+ cmd. arg ( "--keep-going" ) ;
128
123
129
124
cmd
130
125
}
@@ -148,7 +143,6 @@ impl WorkspaceBuildScripts {
148
143
config : & CargoConfig ,
149
144
workspace : & CargoWorkspace ,
150
145
progress : & dyn Fn ( String ) ,
151
- toolchain : Option < & Version > ,
152
146
sysroot : & Sysroot ,
153
147
) -> io:: Result < WorkspaceBuildScripts > {
154
148
let current_dir = match & config. invocation_location {
@@ -160,13 +154,8 @@ impl WorkspaceBuildScripts {
160
154
. as_ref ( ) ;
161
155
162
156
let allowed_features = workspace. workspace_features ( ) ;
163
- let cmd = Self :: build_command (
164
- config,
165
- & allowed_features,
166
- workspace. manifest_path ( ) ,
167
- toolchain,
168
- sysroot,
169
- ) ?;
157
+ let cmd =
158
+ Self :: build_command ( config, & allowed_features, workspace. manifest_path ( ) , sysroot) ?;
170
159
Self :: run_per_ws ( cmd, workspace, current_dir, progress)
171
160
}
172
161
@@ -194,7 +183,6 @@ impl WorkspaceBuildScripts {
194
183
& Default :: default ( ) ,
195
184
// This is not gonna be used anyways, so just construct a dummy here
196
185
& ManifestPath :: try_from ( workspace_root. clone ( ) ) . unwrap ( ) ,
197
- None ,
198
186
& Sysroot :: empty ( ) ,
199
187
) ?;
200
188
// NB: Cargo.toml could have been modified between `cargo metadata` and
0 commit comments