Skip to content

Commit 4188e41

Browse files
committed
clarify that --rustc-args is for compiletest tests
1 parent e7a851f commit 4188e41

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: src/bootstrap/src/core/config/flags.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ pub enum Subcommand {
347347
/// extra arguments to be passed for the test tool being used
348348
/// (e.g. libtest, compiletest or rustdoc)
349349
test_args: Vec<String>,
350-
/// extra options to pass the compiler when running tests
350+
/// extra options to pass the compiler when running compiletest tests
351351
#[arg(long, value_name = "ARGS", allow_hyphen_values(true))]
352352
rustc_args: Vec<String>,
353353
#[arg(long)]

Diff for: src/etc/completions/x.py.fish

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ complete -c x.py -n "__fish_seen_subcommand_from doc" -l enable-bolt-settings -d
266266
complete -c x.py -n "__fish_seen_subcommand_from doc" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
267267
complete -c x.py -n "__fish_seen_subcommand_from doc" -s h -l help -d 'Print help (see more with \'--help\')'
268268
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
269-
complete -c x.py -n "__fish_seen_subcommand_from test" -l rustc-args -d 'extra options to pass the compiler when running tests' -r
269+
complete -c x.py -n "__fish_seen_subcommand_from test" -l rustc-args -d 'extra options to pass the compiler when running compiletest tests' -r
270270
complete -c x.py -n "__fish_seen_subcommand_from test" -l extra-checks -d 'comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell)' -r
271271
complete -c x.py -n "__fish_seen_subcommand_from test" -l compare-mode -d 'mode describing what file the actual ui output will be compared to' -r
272272
complete -c x.py -n "__fish_seen_subcommand_from test" -l pass -d 'force {check,build,run}-pass tests to this mode' -r

Diff for: src/etc/completions/x.py.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
338338
}
339339
'x.py;test' {
340340
[CompletionResult]::new('--test-args', 'test-args', [CompletionResultType]::ParameterName, 'extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)')
341-
[CompletionResult]::new('--rustc-args', 'rustc-args', [CompletionResultType]::ParameterName, 'extra options to pass the compiler when running tests')
341+
[CompletionResult]::new('--rustc-args', 'rustc-args', [CompletionResultType]::ParameterName, 'extra options to pass the compiler when running compiletest tests')
342342
[CompletionResult]::new('--extra-checks', 'extra-checks', [CompletionResultType]::ParameterName, 'comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell)')
343343
[CompletionResult]::new('--compare-mode', 'compare-mode', [CompletionResultType]::ParameterName, 'mode describing what file the actual ui output will be compared to')
344344
[CompletionResult]::new('--pass', 'pass', [CompletionResultType]::ParameterName, 'force {check,build,run}-pass tests to this mode')

Diff for: src/etc/completions/x.py.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ _arguments "${_arguments_options[@]}" \
337337
(test)
338338
_arguments "${_arguments_options[@]}" \
339339
'*--test-args=[extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)]:ARGS: ' \
340-
'*--rustc-args=[extra options to pass the compiler when running tests]:ARGS: ' \
340+
'*--rustc-args=[extra options to pass the compiler when running compiletest tests]:ARGS: ' \
341341
'--extra-checks=[comma-separated list of other files types to check (accepts py, py\:lint, py\:fmt, shell)]:EXTRA_CHECKS: ' \
342342
'--compare-mode=[mode describing what file the actual ui output will be compared to]:COMPARE MODE: ' \
343343
'--pass=[force {check,build,run}-pass tests to this mode]:check | build | run: ' \

0 commit comments

Comments
 (0)