mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 00:53:31 +00:00
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_non_unix.rs:4:1
|
|
|
|
|
LL | #[cfg(hermit)]
|
|
| ^^^^^^------^^
|
|
| |
|
|
| help: try: `target_os = "hermit"`
|
|
|
|
|
= note: `-D clippy::mismatched-target-os` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::mismatched_target_os)]`
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_non_unix.rs:7:1
|
|
|
|
|
LL | #[cfg(wasi)]
|
|
| ^^^^^^----^^
|
|
| |
|
|
| help: try: `target_os = "wasi"`
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_non_unix.rs:10:1
|
|
|
|
|
LL | #[cfg(none)]
|
|
| ^^^^^^----^^
|
|
| |
|
|
| help: try: `target_os = "none"`
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_non_unix.rs:14:1
|
|
|
|
|
LL | #[cfg(all(not(windows), wasi))]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^----^^^
|
|
| |
|
|
| help: try: `target_os = "wasi"`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|