summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-11 06:10:44 +0000
committerbors <bors@rust-lang.org>2023-12-11 06:10:44 +0000
commitc13187c9983a58f689531002e696ec206450b338 (patch)
tree89a779d24a4f7c60dc3b74526f9ea77c93c12b8b /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parente299752868656b6b355864d66659fe542a525ec5 (diff)
parent22b534de4f75bbd6025b3f092892aacdd6da0437 (diff)
downloadrust-c13187c9983a58f689531002e696ec206450b338.tar.gz
rust-c13187c9983a58f689531002e696ec206450b338.zip
Auto merge of #118494 - nnethercote:default_configuration-fill_well_known, r=Mark-Simulacrum
Rearrange `default_configuration` and `CheckCfg::fill_well_known`.

There are comments saying these two functions should be kept in sync, but they have very different structures, process symbols in different orders, and there are some inconsistencies.

This commit reorders them so they're both mostly processing symbols in alphabetical order, which makes cross-checking them a lot easier. The commit also adds some macros to factor out repetitive code patterns.

The commit also moves the handling of `sym::test` out of `build_configuration` into `default_configuration`, where all the other symbols are handled.

r? `@bjorn3`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions