You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
db.help(format!("consider adding `{value}` as a feature in `Cargo.toml`"));
835
871
}
836
-
}else{
872
+
}elseif !is_cfg_a_well_know_name {
837
873
db.help(format!("consider using a Cargo feature instead or adding `println!(\"cargo:rustc-check-cfg={inst}\");` to the top of a `build.rs`"));
838
874
}
839
875
db.note("see <https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#check-cfg> for more information about checking conditional configuration");
840
876
}else{
841
-
db.help(format!("to expect this configuration use `--check-cfg={inst}`"));
877
+
if !is_cfg_a_well_know_name {
878
+
db.help(format!("to expect this configuration use `--check-cfg={inst}`"));
879
+
}
842
880
db.note("see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration");
= note: expected values for `target_pointer_width` are: `16`, `32`, `64`
8
-
= help: to expect this configuration use `--check-cfg=cfg(target_pointer_width, values("X"))`
9
8
= note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration
Copy file name to clipboardExpand all lines: tests/ui/check-cfg/exhaustive-names-values.empty_cfg.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,6 @@ LL | #[cfg(test = "value")]
18
18
| help: remove the value
19
19
|
20
20
= note: no expected value for `test`
21
-
= help: to expect this configuration use `--check-cfg=cfg(test, values("value"))`
22
21
= note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration
Copy file name to clipboardExpand all lines: tests/ui/check-cfg/exhaustive-names-values.feature.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,6 @@ LL | #[cfg(test = "value")]
18
18
| help: remove the value
19
19
|
20
20
= note: no expected value for `test`
21
-
= help: to expect this configuration use `--check-cfg=cfg(test, values("value"))`
22
21
= note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration
Copy file name to clipboardExpand all lines: tests/ui/check-cfg/exhaustive-names-values.full.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,6 @@ LL | #[cfg(test = "value")]
18
18
| help: remove the value
19
19
|
20
20
= note: no expected value for `test`
21
-
= help: to expect this configuration use `--check-cfg=cfg(test, values("value"))`
22
21
= note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration
Copy file name to clipboardExpand all lines: tests/ui/check-cfg/exhaustive-values.empty_cfg.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,6 @@ LL | #[cfg(test = "value")]
7
7
| help: remove the value
8
8
|
9
9
= note: no expected value for `test`
10
-
= help: to expect this configuration use `--check-cfg=cfg(test, values("value"))`
11
10
= note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration
Copy file name to clipboardExpand all lines: tests/ui/check-cfg/exhaustive-values.without_names.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,6 @@ LL | #[cfg(test = "value")]
7
7
| help: remove the value
8
8
|
9
9
= note: no expected value for `test`
10
-
= help: to expect this configuration use `--check-cfg=cfg(test, values("value"))`
11
10
= note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration
Copy file name to clipboardExpand all lines: tests/ui/check-cfg/no-expected-values.empty.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,6 @@ LL | #[cfg(test = "foo")]
20
20
| help: remove the value
21
21
|
22
22
= note: no expected value for `test`
23
-
= help: to expect this configuration use `--check-cfg=cfg(test, values("foo"))`
24
23
= note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration
Copy file name to clipboardExpand all lines: tests/ui/check-cfg/no-expected-values.mixed.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,6 @@ LL | #[cfg(test = "foo")]
20
20
| help: remove the value
21
21
|
22
22
= note: no expected value for `test`
23
-
= help: to expect this configuration use `--check-cfg=cfg(test, values("foo"))`
24
23
= note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration
Copy file name to clipboardExpand all lines: tests/ui/check-cfg/no-expected-values.simple.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,6 @@ LL | #[cfg(test = "foo")]
20
20
| help: remove the value
21
21
|
22
22
= note: no expected value for `test`
23
-
= help: to expect this configuration use `--check-cfg=cfg(test, values("foo"))`
24
23
= note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration
0 commit comments