about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-02-24 21:42:13 +0100
committerGitHub <noreply@github.com>2022-02-24 21:42:13 +0100
commit000e38d9cb4140048b14600938e73e9cdafb7341 (patch)
tree53457e4e41ee064c791c0aff6adb5624312cf554 /compiler/rustc_codegen_llvm/src
parent7f9953691563f30335462f55d05c8b266f7b1932 (diff)
parenta556a2a8e60501203f310407b27cf739618c0000 (diff)
downloadrust-000e38d9cb4140048b14600938e73e9cdafb7341.tar.gz
rust-000e38d9cb4140048b14600938e73e9cdafb7341.zip
Rollup merge of #94175 - Urgau:check-cfg-improvements, r=petrochenkov
Improve `--check-cfg` implementation

This pull-request is a mix of improvements regarding the `--check-cfg` implementation:

- Simpler internal representation (usage of `Option` instead of separate bool)
- Add --check-cfg to the unstable book (based on the RFC)
- Improved diagnostics:
    * List possible values when the value is unexpected
    * Suggest if possible a name or value that is similar
- Add more tests (well known names, mix of combinations, ...)

r? ```@petrochenkov```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions