rust/tests/ui/check-cfg/false.stderr
2025-12-11 18:23:04 +00:00

95 lines
3.4 KiB
Text

warning: unexpected `cfg` condition name: `FALSE`
--> $DIR/false.rs:7:7
|
LL | #[cfg(FALSE)]
| ^^^^^
|
= help: to expect this configuration use `--check-cfg=cfg(FALSE)`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
help: you may have meant to use `false` (notice the capitalization). Doing so makes this predicate evaluate to `false` unconditionally
|
LL - #[cfg(FALSE)]
LL + #[cfg(false)]
|
warning: unexpected `cfg` condition name: `False`
--> $DIR/false.rs:13:7
|
LL | #[cfg(False)]
| ^^^^^
|
= help: to expect this configuration use `--check-cfg=cfg(False)`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
help: you may have meant to use `false` (notice the capitalization). Doing so makes this predicate evaluate to `false` unconditionally (notice the capitalization)
|
LL - #[cfg(False)]
LL + #[cfg(false)]
|
warning: unexpected `cfg` condition name: `r#false`
--> $DIR/false.rs:19:7
|
LL | #[cfg(r#false)]
| ^^^^^^^
|
= help: to expect this configuration use `--check-cfg=cfg(r#false)`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `False`
--> $DIR/false.rs:25:7
|
LL | #[cfg(r#False)]
| ^^^^^^^
|
= help: to expect this configuration use `--check-cfg=cfg(False)`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `TRUE`
--> $DIR/false.rs:34:7
|
LL | #[cfg(TRUE)]
| ^^^^
|
= help: to expect this configuration use `--check-cfg=cfg(TRUE)`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
help: you may have meant to use `true` (notice the capitalization). Doing so makes this predicate evaluate to `true` unconditionally
|
LL - #[cfg(TRUE)]
LL + #[cfg(true)]
|
warning: unexpected `cfg` condition name: `True`
--> $DIR/false.rs:40:7
|
LL | #[cfg(True)]
| ^^^^
|
= help: to expect this configuration use `--check-cfg=cfg(True)`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
help: you may have meant to use `true` (notice the capitalization). Doing so makes this predicate evaluate to `true` unconditionally
|
LL - #[cfg(True)]
LL + #[cfg(true)]
|
warning: unexpected `cfg` condition name: `r#true`
--> $DIR/false.rs:46:7
|
LL | #[cfg(r#true)]
| ^^^^^^
|
= help: to expect this configuration use `--check-cfg=cfg(r#true)`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `True`
--> $DIR/false.rs:52:7
|
LL | #[cfg(r#True)]
| ^^^^^^
|
= help: to expect this configuration use `--check-cfg=cfg(True)`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
warning: 8 warnings emitted