about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-21 10:38:43 +0000
committerbors <bors@rust-lang.org>2022-04-21 10:38:43 +0000
commit1dec35a1b0df406da5d7cae55a7fa8d186a2b028 (patch)
treecfc112c39c83a8786564506512a55caaf204d5b4 /compiler/rustc_codegen_llvm/src
parent3d3dafb771fb714baeb36793f2d4cd333a8e9c34 (diff)
parent870cb8ef922dc6f4a1537572cd302e5a35e1869a (diff)
downloadrust-1dec35a1b0df406da5d7cae55a7fa8d186a2b028.tar.gz
rust-1dec35a1b0df406da5d7cae55a7fa8d186a2b028.zip
Auto merge of #96003 - aswild:pr/bootstrap-subcommands-cleanup, r=jyn514
bootstrap: consolidate subcommand parsing and matching

There's several places where the x.py command names are matched as
strings, leading to some inconsistencies and opportunities for cleanup.

* Add Format, Clean, and Setup variants to builder::Kind.
* Use Kind to parse the x.py subcommand name (including aliases)
* Match on the subcommand Kind rather than strings when handling
  options and help text.
* Several subcommands don't display any paths when run with `-h -v` even
  though the help text indicates that they should. Fix this and refactor
  so that manually keeping matches in sync isn't necessary.

Fixes #95937
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions