2024-01-28 11:13:02 +08:00
|
|
|
warning: unexpected `cfg` condition name: `linux`
|
2024-04-09 14:07:30 +02:00
|
|
|
--> $DIR/cfg-value-for-cfg-name.rs:9:7
|
2024-01-28 11:13:02 +08:00
|
|
|
|
|
|
|
|
|
LL | #[cfg(linux)]
|
|
|
|
|
| ^^^^^ help: found config with similar value: `target_os = "linux"`
|
|
|
|
|
|
|
|
|
|
|
= help: to expect this configuration use `--check-cfg=cfg(linux)`
|
2024-02-25 15:45:43 +01:00
|
|
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
2024-01-28 11:13:02 +08:00
|
|
|
= note: `#[warn(unexpected_cfgs)]` on by default
|
|
|
|
|
|
|
|
|
|
warning: unexpected `cfg` condition name: `linux`
|
2024-04-09 14:07:30 +02:00
|
|
|
--> $DIR/cfg-value-for-cfg-name.rs:14:7
|
2024-01-28 11:13:02 +08:00
|
|
|
|
|
|
|
|
|
LL | #[cfg(linux = "os-name")]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: to expect this configuration use `--check-cfg=cfg(linux, values("os-name"))`
|
2024-02-25 15:45:43 +01:00
|
|
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
|
2024-01-28 11:13:02 +08:00
|
|
|
|
|
|
|
|
warning: 2 warnings emitted
|
|
|
|
|
|