diff options
| author | bors <bors@rust-lang.org> | 2024-11-11 19:25:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-11 19:25:06 +0000 |
| commit | 81eef2d362a6f03db6f8928f82d94298d31eb81b (patch) | |
| tree | 86fd6dcc1953873fed4c126604d42fab8a63e744 /compiler/rustc_driver_impl/src/lib.rs | |
| parent | de27914e8e6c5f8a02698a8ed9b318df17f2f621 (diff) | |
| parent | bcd85e5434a4eac6ce75cc5daf0334c7d7f38229 (diff) | |
| download | rust-81eef2d362a6f03db6f8928f82d94298d31eb81b.tar.gz rust-81eef2d362a6f03db6f8928f82d94298d31eb81b.zip | |
Auto merge of #132902 - matthiaskrgr:rollup-43qgg3t, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #129627 (Ensure that tail expr receive lifetime extension) - #130999 (Implement file_lock feature) - #132873 (handle separate prefixes in clippy rules) - #132891 (Remove `rustc_session::config::rustc_short_optgroups`) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_driver_impl/src/lib.rs')
| -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"; |
