about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-09 19:16:44 +0100
committerGitHub <noreply@github.com>2024-11-09 19:16:44 +0100
commit88acd493f9dbbc8228db2b123c9b4132a995de92 (patch)
tree66e30b662b35fce356ba634ed57a993c94c45e58 /compiler/rustc_codegen_llvm/src
parent5f58dc9ebd5c1282551085142c14eab0d6f332ec (diff)
parentb8377e58445fe5488664bcbbedd04a686cfdad03 (diff)
downloadrust-88acd493f9dbbc8228db2b123c9b4132a995de92.tar.gz
rust-88acd493f9dbbc8228db2b123c9b4132a995de92.zip
Rollup merge of #132754 - Zalathar:opts, r=GuillaumeGomez,jieyouxu
Simplify the internal API for declaring command-line options

The internal APIs for declaring command-line options are old, and intimidatingly complex. This PR replaces them with a single function that takes explicit `stability` and `kind` arguments, making it easier to see how each option is handled, and whether it is treated as stable or unstable.

We also don't appear to have any tests for the output of `rustc --help` and similar, so I've added a run-make test to verify that this PR doesn't change any output. (There is already a similar run-make test for rustdoc's help output.)

---

The librustdoc changes are simply adjusting to updated compiler APIs; no functional change intended.

---

A side-effect of these changes is that rustfmt can once again format the entirety of these option declaration lists, which it was not doing before.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions