@@ -4,20 +4,18 @@ warning: unexpected `cfg` condition name: `unknown_key`
4
4
LL | #[cfg(unknown_key = "value")]
5
5
| ^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
- = help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, ` ub_checks`, `unix`, and `windows`
7
+ = help: expected names are: `clippy`, `debug_assertions`, `doc`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `ub_checks`, `unix`, and `windows`
8
8
= help: to expect this configuration use `--check-cfg=cfg(unknown_key, values("value"))`
9
9
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
10
10
= note: `#[warn(unexpected_cfgs)]` on by default
11
11
12
12
warning: unexpected `cfg` condition value: `value`
13
13
--> $DIR/exhaustive-names-values.rs:14:7
14
14
|
15
- LL | #[cfg(test = "value")]
16
- | ^^^^----------
17
- | |
18
- | help: remove the value
15
+ LL | #[cfg(target_vendor = "value")]
16
+ | ^^^^^^^^^^^^^^^^^^^^^^^
19
17
|
20
- = note: no expected value for `test `
18
+ = note: expected values for `target_vendor` are: `apple`, `espressif`, `fortanix`, `ibm`, `kmc`, `nintendo`, `nvidia`, `pc`, `risc0`, `sony`, `sun`, `unikraft`, `unknown`, `uwp`, `win7`, and `wrs `
21
19
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
22
20
23
21
warning: unexpected `cfg` condition value: `unk`
0 commit comments