about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-11 15:23:34 +0100
committerGitHub <noreply@github.com>2024-11-11 15:23:34 +0100
commitbcd85e5434a4eac6ce75cc5daf0334c7d7f38229 (patch)
treeb567b28bebc9367b81b5314a73a0e4c9e9dd3c8d /compiler/rustc_trait_selection/src
parent731966692372d33d7abf56b68ec317da0ccb63bd (diff)
parent8b4701d74cc7bc1a9532716fd2bd25579102115d (diff)
downloadrust-bcd85e5434a4eac6ce75cc5daf0334c7d7f38229.tar.gz
rust-bcd85e5434a4eac6ce75cc5daf0334c7d7f38229.zip
Rollup merge of #132891 - Zalathar:short-opt-groups, r=jieyouxu
Remove `rustc_session::config::rustc_short_optgroups`

Follow-up to https://github.com/rust-lang/rust/pull/132754#discussion_r1835427349.

The name `rustc_short_optgroups` has always been confusing, because it is unrelated to the distinction between short and long options (i.e. `-s` vs `--long`), and instead means something like “the subset of command-line options that are printed by `rustc --help` without `-v`”.

So let's merge that function into the main `rustc_optgroups`, and store the relevant bit of information in a boolean field in `RustcOptGroup` instead.

---

This PR also modifies `RustcOptGroup` to store its various strings directly, instead of inside a boxed `apply` closure. That turned out to not be necessary for the main change, but is a worthwhile cleanup in its own right.
Diffstat (limited to 'compiler/rustc_trait_selection/src')
0 files changed, 0 insertions, 0 deletions