rust/compiler/rustc_interface/src
bors 7585c62658 Auto merge of #119473 - Urgau:check-cfg-explicit-none, r=petrochenkov
Add explicit `none()` value variant in check-cfg

This PR adds an explicit none value variant in check-cfg values: `values(none())`.

Currently the only way to define the none variant is with an empty `values()` which means that if someone has a cfg that takes none and strings they need to use two invocations: `--check-cfg=cfg(foo) --check-cfg=cfg(foo, values("bar"))`.
Which would now be `--check-cfg=cfg(foo, values(none(),"bar"))`, this is simpler and easier to understand.

`--check-cfg=cfg(foo)`, `--check-cfg=cfg(foo, values())` and `--check-cfg=cfg(foo, values(none()))` would be equivalent.

*Another motivation for doing this is to make empty `values()` actually means no-values, but this is orthogonal to this PR and adding `none()` is sufficient in it-self.*

`@rustbot` label +F-check-cfg
r? `@petrochenkov`
2024-01-13 06:17:46 +00:00
..
callbacks.rs Rename TRACK_DIAGNOSTICS as TRACK_DIAGNOSTIC. 2024-01-11 07:55:03 +11:00
errors.rs Write to stdout if - is given as output file 2023-06-06 17:53:29 -04:00
interface.rs Auto merge of #119473 - Urgau:check-cfg-explicit-none, r=petrochenkov 2024-01-13 06:17:46 +00:00
lib.rs rustc_interface: Address all rustc::potential_query_instability lints 2023-12-05 06:33:38 +01:00
passes.rs Rename {create,emit}_warning as {create,emit}_warn. 2024-01-10 07:33:06 +11:00
proc_macro_decls.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
queries.rs Rename {create,emit}_warning as {create,emit}_warn. 2024-01-10 07:33:06 +11:00
tests.rs Rollup merge of #118680 - djkoloski:shell_argfiles, r=compiler-errors 2024-01-09 17:52:21 +01:00
util.rs Rename {create,emit}_warning as {create,emit}_warn. 2024-01-10 07:33:06 +11:00