1
1
warning: unexpected `cfg` condition name: `featur`
2
- --> $DIR/diagnotics.rs:8 :7
2
+ --> $DIR/diagnotics.rs:9 :7
3
3
|
4
4
LL | #[cfg(featur)]
5
5
| ^^^^^^ help: there is a config with a similar name: `feature`
@@ -9,7 +9,7 @@ LL | #[cfg(featur)]
9
9
= note: `#[warn(unexpected_cfgs)]` on by default
10
10
11
11
warning: unexpected `cfg` condition name: `featur`
12
- --> $DIR/diagnotics.rs:12 :7
12
+ --> $DIR/diagnotics.rs:13 :7
13
13
|
14
14
LL | #[cfg(featur = "foo")]
15
15
| ^^^^^^^^^^^^^^
@@ -21,7 +21,7 @@ LL | #[cfg(feature = "foo")]
21
21
| ~~~~~~~
22
22
23
23
warning: unexpected `cfg` condition name: `featur`
24
- --> $DIR/diagnotics.rs:16 :7
24
+ --> $DIR/diagnotics.rs:17 :7
25
25
|
26
26
LL | #[cfg(featur = "fo")]
27
27
| ^^^^^^^^^^^^^
@@ -34,7 +34,7 @@ LL | #[cfg(feature = "foo")]
34
34
| ~~~~~~~~~~~~~~~
35
35
36
36
warning: unexpected `cfg` condition name: `no_value`
37
- --> $DIR/diagnotics.rs:23 :7
37
+ --> $DIR/diagnotics.rs:24 :7
38
38
|
39
39
LL | #[cfg(no_value)]
40
40
| ^^^^^^^^ help: there is a config with a similar name: `no_values`
@@ -47,7 +47,7 @@ LL | #[cfg(no_value)]
47
47
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
48
48
49
49
warning: unexpected `cfg` condition name: `no_value`
50
- --> $DIR/diagnotics.rs:27 :7
50
+ --> $DIR/diagnotics.rs:28 :7
51
51
|
52
52
LL | #[cfg(no_value = "foo")]
53
53
| ^^^^^^^^^^^^^^^^
@@ -64,7 +64,7 @@ LL | #[cfg(no_values)]
64
64
| ~~~~~~~~~
65
65
66
66
warning: unexpected `cfg` condition value: `bar`
67
- --> $DIR/diagnotics.rs:31 :7
67
+ --> $DIR/diagnotics.rs:32 :7
68
68
|
69
69
LL | #[cfg(no_values = "bar")]
70
70
| ^^^^^^^^^--------
@@ -79,5 +79,21 @@ LL | #[cfg(no_values = "bar")]
79
79
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_values, values(\"bar\"))");` to the top of the `build.rs`
80
80
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
81
81
82
- warning: 6 warnings emitted
82
+ warning: unexpected `cfg` condition value: `quote"`
83
+ --> $DIR/diagnotics.rs:36:7
84
+ |
85
+ LL | #[cfg(quote = "quote\"")]
86
+ | ^^^^^^^^---------
87
+ | |
88
+ | help: there is a expected value with a similar name: `"quote"`
89
+ |
90
+ = note: expected values for `quote` are: `quote`
91
+ = help: consider using a Cargo feature instead
92
+ = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
93
+ [lints.rust]
94
+ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(quote, values("quote\""))'] }
95
+ = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(quote, values(\"quote\\\"\"))");` to the top of the `build.rs`
96
+ = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
97
+
98
+ warning: 7 warnings emitted
83
99
0 commit comments