11warning: unexpected `cfg` condition name: `featur`
2- --> $DIR/diagnotics.rs:8 :7
2+ --> $DIR/diagnotics.rs:9 :7
33 |
44LL | #[cfg(featur)]
55 | ^^^^^^ help: there is a config with a similar name: `feature`
@@ -9,7 +9,7 @@ LL | #[cfg(featur)]
99 = note: `#[warn(unexpected_cfgs)]` on by default
1010
1111warning: unexpected `cfg` condition name: `featur`
12- --> $DIR/diagnotics.rs:12 :7
12+ --> $DIR/diagnotics.rs:13 :7
1313 |
1414LL | #[cfg(featur = "foo")]
1515 | ^^^^^^^^^^^^^^
@@ -21,7 +21,7 @@ LL | #[cfg(feature = "foo")]
2121 | ~~~~~~~
2222
2323warning: unexpected `cfg` condition name: `featur`
24- --> $DIR/diagnotics.rs:16 :7
24+ --> $DIR/diagnotics.rs:17 :7
2525 |
2626LL | #[cfg(featur = "fo")]
2727 | ^^^^^^^^^^^^^
@@ -34,7 +34,7 @@ LL | #[cfg(feature = "foo")]
3434 | ~~~~~~~~~~~~~~~
3535
3636warning: unexpected `cfg` condition name: `no_value`
37- --> $DIR/diagnotics.rs:23 :7
37+ --> $DIR/diagnotics.rs:24 :7
3838 |
3939LL | #[cfg(no_value)]
4040 | ^^^^^^^^ help: there is a config with a similar name: `no_values`
@@ -47,7 +47,7 @@ LL | #[cfg(no_value)]
4747 = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
4848
4949warning: unexpected `cfg` condition name: `no_value`
50- --> $DIR/diagnotics.rs:27 :7
50+ --> $DIR/diagnotics.rs:28 :7
5151 |
5252LL | #[cfg(no_value = "foo")]
5353 | ^^^^^^^^^^^^^^^^
@@ -64,7 +64,7 @@ LL | #[cfg(no_values)]
6464 | ~~~~~~~~~
6565
6666warning: unexpected `cfg` condition value: `bar`
67- --> $DIR/diagnotics.rs:31 :7
67+ --> $DIR/diagnotics.rs:32 :7
6868 |
6969LL | #[cfg(no_values = "bar")]
7070 | ^^^^^^^^^--------
@@ -79,5 +79,21 @@ LL | #[cfg(no_values = "bar")]
7979 = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_values, values(\"bar\"))");` to the top of the `build.rs`
8080 = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
8181
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
8399
0 commit comments