Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1d07f61

Browse files
committedOct 22, 2023
add bootstrap flag --skip-stage0-validation
Signed-off-by: onur-ozkan <[email protected]>
1 parent a63624a commit 1d07f61

File tree

6 files changed

+66
-16
lines changed

6 files changed

+66
-16
lines changed
 

‎src/bootstrap/src/core/config/config.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,9 @@ impl Config {
12751275
}
12761276

12771277
config.initial_rustc = if let Some(rustc) = build.rustc {
1278-
config.check_build_rustc_version(&rustc);
1278+
if !flags.skip_stage0_validation {
1279+
config.check_build_rustc_version(&rustc);
1280+
}
12791281
PathBuf::from(rustc)
12801282
} else {
12811283
config.download_beta_toolchain();

‎src/bootstrap/src/core/config/flags.rs

+3
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ pub struct Flags {
155155
/// Enable BOLT link flags
156156
#[arg(global(true), long)]
157157
pub enable_bolt_settings: bool,
158+
/// Ignore stage0 compiler validation
159+
#[arg(global(true), long)]
160+
pub skip_stage0_validation: bool,
158161
/// Additional reproducible artifacts that should be added to the reproducible artifacts archive.
159162
#[arg(global(true), long)]
160163
pub reproducible_artifact: Vec<String>,

‎src/etc/completions/x.py.fish

+15
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ complete -c x.py -n "__fish_use_subcommand" -l dry-run -d 'dry run; don\'t build
2828
complete -c x.py -n "__fish_use_subcommand" -l json-output -d 'use message-format=json'
2929
complete -c x.py -n "__fish_use_subcommand" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
3030
complete -c x.py -n "__fish_use_subcommand" -l enable-bolt-settings -d 'Enable BOLT link flags'
31+
complete -c x.py -n "__fish_use_subcommand" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
3132
complete -c x.py -n "__fish_use_subcommand" -s h -l help -d 'Print help'
3233
complete -c x.py -n "__fish_use_subcommand" -f -a "build" -d 'Compile either the compiler or libraries'
3334
complete -c x.py -n "__fish_use_subcommand" -f -a "check" -d 'Compile either the compiler or libraries, using cargo check'
@@ -73,6 +74,7 @@ complete -c x.py -n "__fish_seen_subcommand_from build" -l dry-run -d 'dry run;
7374
complete -c x.py -n "__fish_seen_subcommand_from build" -l json-output -d 'use message-format=json'
7475
complete -c x.py -n "__fish_seen_subcommand_from build" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
7576
complete -c x.py -n "__fish_seen_subcommand_from build" -l enable-bolt-settings -d 'Enable BOLT link flags'
77+
complete -c x.py -n "__fish_seen_subcommand_from build" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
7678
complete -c x.py -n "__fish_seen_subcommand_from build" -s h -l help -d 'Print help (see more with \'--help\')'
7779
complete -c x.py -n "__fish_seen_subcommand_from check" -l config -d 'TOML configuration file for build' -r -F
7880
complete -c x.py -n "__fish_seen_subcommand_from check" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
@@ -105,6 +107,7 @@ complete -c x.py -n "__fish_seen_subcommand_from check" -l dry-run -d 'dry run;
105107
complete -c x.py -n "__fish_seen_subcommand_from check" -l json-output -d 'use message-format=json'
106108
complete -c x.py -n "__fish_seen_subcommand_from check" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
107109
complete -c x.py -n "__fish_seen_subcommand_from check" -l enable-bolt-settings -d 'Enable BOLT link flags'
110+
complete -c x.py -n "__fish_seen_subcommand_from check" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
108111
complete -c x.py -n "__fish_seen_subcommand_from check" -s h -l help -d 'Print help (see more with \'--help\')'
109112
complete -c x.py -n "__fish_seen_subcommand_from clippy" -s A -d 'clippy lints to allow' -r
110113
complete -c x.py -n "__fish_seen_subcommand_from clippy" -s D -d 'clippy lints to deny' -r
@@ -141,6 +144,7 @@ complete -c x.py -n "__fish_seen_subcommand_from clippy" -l dry-run -d 'dry run;
141144
complete -c x.py -n "__fish_seen_subcommand_from clippy" -l json-output -d 'use message-format=json'
142145
complete -c x.py -n "__fish_seen_subcommand_from clippy" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
143146
complete -c x.py -n "__fish_seen_subcommand_from clippy" -l enable-bolt-settings -d 'Enable BOLT link flags'
147+
complete -c x.py -n "__fish_seen_subcommand_from clippy" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
144148
complete -c x.py -n "__fish_seen_subcommand_from clippy" -s h -l help -d 'Print help (see more with \'--help\')'
145149
complete -c x.py -n "__fish_seen_subcommand_from fix" -l config -d 'TOML configuration file for build' -r -F
146150
complete -c x.py -n "__fish_seen_subcommand_from fix" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
@@ -172,6 +176,7 @@ complete -c x.py -n "__fish_seen_subcommand_from fix" -l dry-run -d 'dry run; do
172176
complete -c x.py -n "__fish_seen_subcommand_from fix" -l json-output -d 'use message-format=json'
173177
complete -c x.py -n "__fish_seen_subcommand_from fix" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
174178
complete -c x.py -n "__fish_seen_subcommand_from fix" -l enable-bolt-settings -d 'Enable BOLT link flags'
179+
complete -c x.py -n "__fish_seen_subcommand_from fix" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
175180
complete -c x.py -n "__fish_seen_subcommand_from fix" -s h -l help -d 'Print help (see more with \'--help\')'
176181
complete -c x.py -n "__fish_seen_subcommand_from fmt" -l config -d 'TOML configuration file for build' -r -F
177182
complete -c x.py -n "__fish_seen_subcommand_from fmt" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
@@ -204,6 +209,7 @@ complete -c x.py -n "__fish_seen_subcommand_from fmt" -l dry-run -d 'dry run; do
204209
complete -c x.py -n "__fish_seen_subcommand_from fmt" -l json-output -d 'use message-format=json'
205210
complete -c x.py -n "__fish_seen_subcommand_from fmt" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
206211
complete -c x.py -n "__fish_seen_subcommand_from fmt" -l enable-bolt-settings -d 'Enable BOLT link flags'
212+
complete -c x.py -n "__fish_seen_subcommand_from fmt" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
207213
complete -c x.py -n "__fish_seen_subcommand_from fmt" -s h -l help -d 'Print help (see more with \'--help\')'
208214
complete -c x.py -n "__fish_seen_subcommand_from doc" -l config -d 'TOML configuration file for build' -r -F
209215
complete -c x.py -n "__fish_seen_subcommand_from doc" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
@@ -237,6 +243,7 @@ complete -c x.py -n "__fish_seen_subcommand_from doc" -l dry-run -d 'dry run; do
237243
complete -c x.py -n "__fish_seen_subcommand_from doc" -l json-output -d 'use message-format=json'
238244
complete -c x.py -n "__fish_seen_subcommand_from doc" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
239245
complete -c x.py -n "__fish_seen_subcommand_from doc" -l enable-bolt-settings -d 'Enable BOLT link flags'
246+
complete -c x.py -n "__fish_seen_subcommand_from doc" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
240247
complete -c x.py -n "__fish_seen_subcommand_from doc" -s h -l help -d 'Print help (see more with \'--help\')'
241248
complete -c x.py -n "__fish_seen_subcommand_from test" -l skip -d 'skips tests matching SUBSTRING, if supported by test tool. May be passed multiple times' -r -F
242249
complete -c x.py -n "__fish_seen_subcommand_from test" -l test-args -d 'extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)' -r
@@ -281,6 +288,7 @@ complete -c x.py -n "__fish_seen_subcommand_from test" -l dry-run -d 'dry run; d
281288
complete -c x.py -n "__fish_seen_subcommand_from test" -l json-output -d 'use message-format=json'
282289
complete -c x.py -n "__fish_seen_subcommand_from test" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
283290
complete -c x.py -n "__fish_seen_subcommand_from test" -l enable-bolt-settings -d 'Enable BOLT link flags'
291+
complete -c x.py -n "__fish_seen_subcommand_from test" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
284292
complete -c x.py -n "__fish_seen_subcommand_from test" -s h -l help -d 'Print help (see more with \'--help\')'
285293
complete -c x.py -n "__fish_seen_subcommand_from bench" -l test-args -r
286294
complete -c x.py -n "__fish_seen_subcommand_from bench" -l config -d 'TOML configuration file for build' -r -F
@@ -313,6 +321,7 @@ complete -c x.py -n "__fish_seen_subcommand_from bench" -l dry-run -d 'dry run;
313321
complete -c x.py -n "__fish_seen_subcommand_from bench" -l json-output -d 'use message-format=json'
314322
complete -c x.py -n "__fish_seen_subcommand_from bench" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
315323
complete -c x.py -n "__fish_seen_subcommand_from bench" -l enable-bolt-settings -d 'Enable BOLT link flags'
324+
complete -c x.py -n "__fish_seen_subcommand_from bench" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
316325
complete -c x.py -n "__fish_seen_subcommand_from bench" -s h -l help -d 'Print help'
317326
complete -c x.py -n "__fish_seen_subcommand_from clean" -l stage -d 'Clean a specific stage without touching other artifacts. By default, every stage is cleaned if this option is not used' -r
318327
complete -c x.py -n "__fish_seen_subcommand_from clean" -l config -d 'TOML configuration file for build' -r -F
@@ -345,6 +354,7 @@ complete -c x.py -n "__fish_seen_subcommand_from clean" -l dry-run -d 'dry run;
345354
complete -c x.py -n "__fish_seen_subcommand_from clean" -l json-output -d 'use message-format=json'
346355
complete -c x.py -n "__fish_seen_subcommand_from clean" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
347356
complete -c x.py -n "__fish_seen_subcommand_from clean" -l enable-bolt-settings -d 'Enable BOLT link flags'
357+
complete -c x.py -n "__fish_seen_subcommand_from clean" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
348358
complete -c x.py -n "__fish_seen_subcommand_from clean" -s h -l help -d 'Print help'
349359
complete -c x.py -n "__fish_seen_subcommand_from dist" -l config -d 'TOML configuration file for build' -r -F
350360
complete -c x.py -n "__fish_seen_subcommand_from dist" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
@@ -376,6 +386,7 @@ complete -c x.py -n "__fish_seen_subcommand_from dist" -l dry-run -d 'dry run; d
376386
complete -c x.py -n "__fish_seen_subcommand_from dist" -l json-output -d 'use message-format=json'
377387
complete -c x.py -n "__fish_seen_subcommand_from dist" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
378388
complete -c x.py -n "__fish_seen_subcommand_from dist" -l enable-bolt-settings -d 'Enable BOLT link flags'
389+
complete -c x.py -n "__fish_seen_subcommand_from dist" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
379390
complete -c x.py -n "__fish_seen_subcommand_from dist" -s h -l help -d 'Print help'
380391
complete -c x.py -n "__fish_seen_subcommand_from install" -l config -d 'TOML configuration file for build' -r -F
381392
complete -c x.py -n "__fish_seen_subcommand_from install" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
@@ -407,6 +418,7 @@ complete -c x.py -n "__fish_seen_subcommand_from install" -l dry-run -d 'dry run
407418
complete -c x.py -n "__fish_seen_subcommand_from install" -l json-output -d 'use message-format=json'
408419
complete -c x.py -n "__fish_seen_subcommand_from install" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
409420
complete -c x.py -n "__fish_seen_subcommand_from install" -l enable-bolt-settings -d 'Enable BOLT link flags'
421+
complete -c x.py -n "__fish_seen_subcommand_from install" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
410422
complete -c x.py -n "__fish_seen_subcommand_from install" -s h -l help -d 'Print help'
411423
complete -c x.py -n "__fish_seen_subcommand_from run" -l args -d 'arguments for the tool' -r
412424
complete -c x.py -n "__fish_seen_subcommand_from run" -l config -d 'TOML configuration file for build' -r -F
@@ -439,6 +451,7 @@ complete -c x.py -n "__fish_seen_subcommand_from run" -l dry-run -d 'dry run; do
439451
complete -c x.py -n "__fish_seen_subcommand_from run" -l json-output -d 'use message-format=json'
440452
complete -c x.py -n "__fish_seen_subcommand_from run" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
441453
complete -c x.py -n "__fish_seen_subcommand_from run" -l enable-bolt-settings -d 'Enable BOLT link flags'
454+
complete -c x.py -n "__fish_seen_subcommand_from run" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
442455
complete -c x.py -n "__fish_seen_subcommand_from run" -s h -l help -d 'Print help (see more with \'--help\')'
443456
complete -c x.py -n "__fish_seen_subcommand_from setup" -l config -d 'TOML configuration file for build' -r -F
444457
complete -c x.py -n "__fish_seen_subcommand_from setup" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
@@ -470,6 +483,7 @@ complete -c x.py -n "__fish_seen_subcommand_from setup" -l dry-run -d 'dry run;
470483
complete -c x.py -n "__fish_seen_subcommand_from setup" -l json-output -d 'use message-format=json'
471484
complete -c x.py -n "__fish_seen_subcommand_from setup" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
472485
complete -c x.py -n "__fish_seen_subcommand_from setup" -l enable-bolt-settings -d 'Enable BOLT link flags'
486+
complete -c x.py -n "__fish_seen_subcommand_from setup" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
473487
complete -c x.py -n "__fish_seen_subcommand_from setup" -s h -l help -d 'Print help (see more with \'--help\')'
474488
complete -c x.py -n "__fish_seen_subcommand_from suggest" -l config -d 'TOML configuration file for build' -r -F
475489
complete -c x.py -n "__fish_seen_subcommand_from suggest" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
@@ -502,4 +516,5 @@ complete -c x.py -n "__fish_seen_subcommand_from suggest" -l dry-run -d 'dry run
502516
complete -c x.py -n "__fish_seen_subcommand_from suggest" -l json-output -d 'use message-format=json'
503517
complete -c x.py -n "__fish_seen_subcommand_from suggest" -l llvm-profile-generate -d 'generate PGO profile with llvm built for rustc'
504518
complete -c x.py -n "__fish_seen_subcommand_from suggest" -l enable-bolt-settings -d 'Enable BOLT link flags'
519+
complete -c x.py -n "__fish_seen_subcommand_from suggest" -l skip-stage0-validation -d 'Ignore stage0 compiler validation'
505520
complete -c x.py -n "__fish_seen_subcommand_from suggest" -s h -l help -d 'Print help (see more with \'--help\')'

‎src/etc/completions/x.py.ps1

+15
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
5454
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
5555
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
5656
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
57+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
5758
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help')
5859
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help')
5960
[CompletionResult]::new('build', 'build', [CompletionResultType]::ParameterValue, 'Compile either the compiler or libraries')
@@ -106,6 +107,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
106107
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
107108
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
108109
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
110+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
109111
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
110112
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
111113
break
@@ -145,6 +147,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
145147
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
146148
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
147149
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
150+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
148151
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
149152
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
150153
break
@@ -188,6 +191,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
188191
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
189192
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
190193
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
194+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
191195
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
192196
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
193197
break
@@ -226,6 +230,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
226230
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
227231
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
228232
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
233+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
229234
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
230235
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
231236
break
@@ -265,6 +270,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
265270
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
266271
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
267272
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
273+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
268274
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
269275
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
270276
break
@@ -305,6 +311,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
305311
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
306312
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
307313
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
314+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
308315
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
309316
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
310317
break
@@ -356,6 +363,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
356363
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
357364
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
358365
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
366+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
359367
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
360368
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
361369
break
@@ -395,6 +403,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
395403
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
396404
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
397405
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
406+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
398407
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help')
399408
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help')
400409
break
@@ -434,6 +443,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
434443
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
435444
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
436445
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
446+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
437447
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help')
438448
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help')
439449
break
@@ -472,6 +482,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
472482
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
473483
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
474484
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
485+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
475486
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help')
476487
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help')
477488
break
@@ -510,6 +521,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
510521
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
511522
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
512523
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
524+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
513525
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help')
514526
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help')
515527
break
@@ -549,6 +561,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
549561
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
550562
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
551563
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
564+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
552565
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
553566
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
554567
break
@@ -587,6 +600,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
587600
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
588601
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
589602
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
603+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
590604
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
591605
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
592606
break
@@ -626,6 +640,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
626640
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'use message-format=json')
627641
[CompletionResult]::new('--llvm-profile-generate', 'llvm-profile-generate', [CompletionResultType]::ParameterName, 'generate PGO profile with llvm built for rustc')
628642
[CompletionResult]::new('--enable-bolt-settings', 'enable-bolt-settings', [CompletionResultType]::ParameterName, 'Enable BOLT link flags')
643+
[CompletionResult]::new('--skip-stage0-validation', 'skip-stage0-validation', [CompletionResultType]::ParameterName, 'Ignore stage0 compiler validation')
629644
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
630645
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')')
631646
break

‎src/etc/completions/x.py.sh

+15-15
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ _x.py() {
6161

6262
case "${cmd}" in
6363
x.py)
64-
opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]... build check clippy fix fmt doc test bench clean dist install run setup suggest"
64+
opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]... build check clippy fix fmt doc test bench clean dist install run setup suggest"
6565
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
6666
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
6767
return 0
@@ -171,7 +171,7 @@ _x.py() {
171171
return 0
172172
;;
173173
x.py__bench)
174-
opts="-v -i -j -h --test-args --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
174+
opts="-v -i -j -h --test-args --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
175175
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
176176
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
177177
return 0
@@ -285,7 +285,7 @@ _x.py() {
285285
return 0
286286
;;
287287
x.py__build)
288-
opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
288+
opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
289289
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
290290
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
291291
return 0
@@ -395,7 +395,7 @@ _x.py() {
395395
return 0
396396
;;
397397
x.py__check)
398-
opts="-v -i -j -h --all-targets --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
398+
opts="-v -i -j -h --all-targets --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
399399
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
400400
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
401401
return 0
@@ -505,7 +505,7 @@ _x.py() {
505505
return 0
506506
;;
507507
x.py__clean)
508-
opts="-v -i -j -h --all --stage --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
508+
opts="-v -i -j -h --all --stage --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
509509
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
510510
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
511511
return 0
@@ -615,7 +615,7 @@ _x.py() {
615615
return 0
616616
;;
617617
x.py__clippy)
618-
opts="-A -D -W -F -v -i -j -h --fix --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
618+
opts="-A -D -W -F -v -i -j -h --fix --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
619619
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
620620
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
621621
return 0
@@ -741,7 +741,7 @@ _x.py() {
741741
return 0
742742
;;
743743
x.py__dist)
744-
opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
744+
opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
745745
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
746746
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
747747
return 0
@@ -851,7 +851,7 @@ _x.py() {
851851
return 0
852852
;;
853853
x.py__doc)
854-
opts="-v -i -j -h --open --json --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
854+
opts="-v -i -j -h --open --json --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
855855
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
856856
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
857857
return 0
@@ -961,7 +961,7 @@ _x.py() {
961961
return 0
962962
;;
963963
x.py__fix)
964-
opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
964+
opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
965965
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
966966
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
967967
return 0
@@ -1071,7 +1071,7 @@ _x.py() {
10711071
return 0
10721072
;;
10731073
x.py__fmt)
1074-
opts="-v -i -j -h --check --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
1074+
opts="-v -i -j -h --check --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
10751075
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
10761076
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
10771077
return 0
@@ -1181,7 +1181,7 @@ _x.py() {
11811181
return 0
11821182
;;
11831183
x.py__install)
1184-
opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
1184+
opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
11851185
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
11861186
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
11871187
return 0
@@ -1291,7 +1291,7 @@ _x.py() {
12911291
return 0
12921292
;;
12931293
x.py__run)
1294-
opts="-v -i -j -h --args --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
1294+
opts="-v -i -j -h --args --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
12951295
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
12961296
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
12971297
return 0
@@ -1405,7 +1405,7 @@ _x.py() {
14051405
return 0
14061406
;;
14071407
x.py__setup)
1408-
opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [<PROFILE>|hook|vscode|link] [PATHS]... [ARGS]..."
1408+
opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [<PROFILE>|hook|vscode|link] [PATHS]... [ARGS]..."
14091409
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
14101410
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
14111411
return 0
@@ -1515,7 +1515,7 @@ _x.py() {
15151515
return 0
15161516
;;
15171517
x.py__suggest)
1518-
opts="-v -i -j -h --run --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
1518+
opts="-v -i -j -h --run --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
15191519
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
15201520
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
15211521
return 0
@@ -1625,7 +1625,7 @@ _x.py() {
16251625
return 0
16261626
;;
16271627
x.py__test)
1628-
opts="-v -i -j -h --no-fail-fast --skip --test-args --rustc-args --no-doc --doc --bless --extra-checks --force-rerun --only-modified --compare-mode --pass --run --rustfix-coverage --verbose --incremental --config --build-dir --build --host --target --exclude --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --reproducible-artifact --set --help [PATHS]... [ARGS]..."
1628+
opts="-v -i -j -h --no-fail-fast --skip --test-args --rustc-args --no-doc --doc --bless --extra-checks --force-rerun --only-modified --compare-mode --pass --run --rustfix-coverage --verbose --incremental --config --build-dir --build --host --target --exclude --include-default-paths --rustc-error-format --on-fail --dry-run --stage --keep-stage --keep-stage-std --src --jobs --warnings --error-format --json-output --color --llvm-skip-rebuild --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --help [PATHS]... [ARGS]..."
16291629
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
16301630
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
16311631
return 0

‎src/etc/completions/x.py.zsh

+15
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ _x.py() {
4848
'--json-output[use message-format=json]' \
4949
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
5050
'--enable-bolt-settings[Enable BOLT link flags]' \
51+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
5152
'-h[Print help]' \
5253
'--help[Print help]' \
5354
'::paths -- paths for the subcommand:_files' \
@@ -96,6 +97,7 @@ _arguments "${_arguments_options[@]}" \
9697
'--json-output[use message-format=json]' \
9798
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
9899
'--enable-bolt-settings[Enable BOLT link flags]' \
100+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
99101
'-h[Print help (see more with '\''--help'\'')]' \
100102
'--help[Print help (see more with '\''--help'\'')]' \
101103
'*::paths -- paths for the subcommand:_files' \
@@ -137,6 +139,7 @@ _arguments "${_arguments_options[@]}" \
137139
'--json-output[use message-format=json]' \
138140
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
139141
'--enable-bolt-settings[Enable BOLT link flags]' \
142+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
140143
'-h[Print help (see more with '\''--help'\'')]' \
141144
'--help[Print help (see more with '\''--help'\'')]' \
142145
'*::paths -- paths for the subcommand:_files' \
@@ -182,6 +185,7 @@ _arguments "${_arguments_options[@]}" \
182185
'--json-output[use message-format=json]' \
183186
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
184187
'--enable-bolt-settings[Enable BOLT link flags]' \
188+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
185189
'-h[Print help (see more with '\''--help'\'')]' \
186190
'--help[Print help (see more with '\''--help'\'')]' \
187191
'*::paths -- paths for the subcommand:_files' \
@@ -222,6 +226,7 @@ _arguments "${_arguments_options[@]}" \
222226
'--json-output[use message-format=json]' \
223227
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
224228
'--enable-bolt-settings[Enable BOLT link flags]' \
229+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
225230
'-h[Print help (see more with '\''--help'\'')]' \
226231
'--help[Print help (see more with '\''--help'\'')]' \
227232
'*::paths -- paths for the subcommand:_files' \
@@ -263,6 +268,7 @@ _arguments "${_arguments_options[@]}" \
263268
'--json-output[use message-format=json]' \
264269
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
265270
'--enable-bolt-settings[Enable BOLT link flags]' \
271+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
266272
'-h[Print help (see more with '\''--help'\'')]' \
267273
'--help[Print help (see more with '\''--help'\'')]' \
268274
'*::paths -- paths for the subcommand:_files' \
@@ -305,6 +311,7 @@ _arguments "${_arguments_options[@]}" \
305311
'--json-output[use message-format=json]' \
306312
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
307313
'--enable-bolt-settings[Enable BOLT link flags]' \
314+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
308315
'-h[Print help (see more with '\''--help'\'')]' \
309316
'--help[Print help (see more with '\''--help'\'')]' \
310317
'*::paths -- paths for the subcommand:_files' \
@@ -358,6 +365,7 @@ _arguments "${_arguments_options[@]}" \
358365
'--json-output[use message-format=json]' \
359366
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
360367
'--enable-bolt-settings[Enable BOLT link flags]' \
368+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
361369
'-h[Print help (see more with '\''--help'\'')]' \
362370
'--help[Print help (see more with '\''--help'\'')]' \
363371
'*::paths -- paths for the subcommand:_files' \
@@ -399,6 +407,7 @@ _arguments "${_arguments_options[@]}" \
399407
'--json-output[use message-format=json]' \
400408
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
401409
'--enable-bolt-settings[Enable BOLT link flags]' \
410+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
402411
'-h[Print help]' \
403412
'--help[Print help]' \
404413
'*::paths -- paths for the subcommand:_files' \
@@ -440,6 +449,7 @@ _arguments "${_arguments_options[@]}" \
440449
'--json-output[use message-format=json]' \
441450
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
442451
'--enable-bolt-settings[Enable BOLT link flags]' \
452+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
443453
'-h[Print help]' \
444454
'--help[Print help]' \
445455
'*::paths -- paths for the subcommand:_files' \
@@ -480,6 +490,7 @@ _arguments "${_arguments_options[@]}" \
480490
'--json-output[use message-format=json]' \
481491
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
482492
'--enable-bolt-settings[Enable BOLT link flags]' \
493+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
483494
'-h[Print help]' \
484495
'--help[Print help]' \
485496
'*::paths -- paths for the subcommand:_files' \
@@ -520,6 +531,7 @@ _arguments "${_arguments_options[@]}" \
520531
'--json-output[use message-format=json]' \
521532
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
522533
'--enable-bolt-settings[Enable BOLT link flags]' \
534+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
523535
'-h[Print help]' \
524536
'--help[Print help]' \
525537
'*::paths -- paths for the subcommand:_files' \
@@ -561,6 +573,7 @@ _arguments "${_arguments_options[@]}" \
561573
'--json-output[use message-format=json]' \
562574
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
563575
'--enable-bolt-settings[Enable BOLT link flags]' \
576+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
564577
'-h[Print help (see more with '\''--help'\'')]' \
565578
'--help[Print help (see more with '\''--help'\'')]' \
566579
'*::paths -- paths for the subcommand:_files' \
@@ -601,6 +614,7 @@ _arguments "${_arguments_options[@]}" \
601614
'--json-output[use message-format=json]' \
602615
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
603616
'--enable-bolt-settings[Enable BOLT link flags]' \
617+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
604618
'-h[Print help (see more with '\''--help'\'')]' \
605619
'--help[Print help (see more with '\''--help'\'')]' \
606620
'::profile -- Either the profile for `config.toml` or another setup action. May be omitted to set up interactively:_files' \
@@ -643,6 +657,7 @@ _arguments "${_arguments_options[@]}" \
643657
'--json-output[use message-format=json]' \
644658
'--llvm-profile-generate[generate PGO profile with llvm built for rustc]' \
645659
'--enable-bolt-settings[Enable BOLT link flags]' \
660+
'--skip-stage0-validation[Ignore stage0 compiler validation]' \
646661
'-h[Print help (see more with '\''--help'\'')]' \
647662
'--help[Print help (see more with '\''--help'\'')]' \
648663
'*::paths -- paths for the subcommand:_files' \

0 commit comments

Comments
 (0)
Please sign in to comment.