1
Fork 0
rust/compiler/rustc_session/src
Dylan DPC 000e38d9cb
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```
2022-02-24 21:42:13 +01:00
..
cgu_reuse_tracker.rs Make Diagnostic::span_fatal unconditionally raise an error 2021-05-08 23:12:04 -04:00
code_stats.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
config.rs Continue improvements on the --check-cfg implementation 2022-02-23 13:22:23 +01:00
cstore.rs Import SourceFiles from crate before decoding foreign Span 2021-12-23 12:56:12 -05:00
filesearch.rs Inline and remove FileSearch::search. 2022-02-02 09:06:34 +11:00
lib.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
options.rs Rollup merge of #94146 - est31:let_else, r=cjgillot 2022-02-20 00:37:34 +01:00
output.rs Auto merge of #91957 - nnethercote:rm-SymbolStr, r=oli-obk 2021-12-19 09:31:37 +00:00
parse.rs Implement --check-cfg option (RFC 3013) 2022-02-16 13:03:12 +01:00
search_paths.rs Make SearchPathFile::file_name_str non-optional. 2022-02-02 13:16:25 +11:00
session.rs Remove DiagnosticBuilder.quiet 2022-01-23 00:11:13 -06:00
utils.rs Implement RFC 2951: Native link modifiers 2021-05-05 16:04:25 -07:00