diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-11-11 13:17:39 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-11-11 22:46:38 +1100 |
| commit | 8b4701d74cc7bc1a9532716fd2bd25579102115d (patch) | |
| tree | d4fa1e9d31ca7485bce7286c99618640f7c16344 /compiler/rustc_driver_impl/src | |
| parent | 3250c1c2460735ea5adfba7b610d5251448c66d7 (diff) | |
| download | rust-8b4701d74cc7bc1a9532716fd2bd25579102115d.tar.gz rust-8b4701d74cc7bc1a9532716fd2bd25579102115d.zip | |
Remove `rustc_session::config::rustc_short_optgroups`
Diffstat (limited to 'compiler/rustc_driver_impl/src')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index 78ba841d89f..b6f7abed6f3 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -934,9 +934,12 @@ pub fn version_at_macro_invocation( } fn usage(verbose: bool, include_unstable_options: bool, nightly_build: bool) { - let groups = if verbose { config::rustc_optgroups() } else { config::rustc_short_optgroups() }; let mut options = getopts::Options::new(); - for option in groups.iter().filter(|x| include_unstable_options || x.is_stable()) { + for option in config::rustc_optgroups() + .iter() + .filter(|x| verbose || !x.is_verbose_help_only) + .filter(|x| include_unstable_options || x.is_stable()) + { option.apply(&mut options); } let message = "Usage: rustc [OPTIONS] INPUT"; |
