mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-25 12:33:30 +00:00
184 lines
4.7 KiB
Text
184 lines
4.7 KiB
Text
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:4:1
|
|
|
|
|
LL | #[cfg(linux)]
|
|
| ^^^^^^-----^^
|
|
| |
|
|
| help: try: `target_os = "linux"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
= 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_unix.rs:7:1
|
|
|
|
|
LL | #[cfg(freebsd)]
|
|
| ^^^^^^-------^^
|
|
| |
|
|
| help: try: `target_os = "freebsd"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:10:1
|
|
|
|
|
LL | #[cfg(dragonfly)]
|
|
| ^^^^^^---------^^
|
|
| |
|
|
| help: try: `target_os = "dragonfly"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:13:1
|
|
|
|
|
LL | #[cfg(openbsd)]
|
|
| ^^^^^^-------^^
|
|
| |
|
|
| help: try: `target_os = "openbsd"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:16:1
|
|
|
|
|
LL | #[cfg(netbsd)]
|
|
| ^^^^^^------^^
|
|
| |
|
|
| help: try: `target_os = "netbsd"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:19:1
|
|
|
|
|
LL | #[cfg(macos)]
|
|
| ^^^^^^-----^^
|
|
| |
|
|
| help: try: `target_os = "macos"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:22:1
|
|
|
|
|
LL | #[cfg(ios)]
|
|
| ^^^^^^---^^
|
|
| |
|
|
| help: try: `target_os = "ios"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:25:1
|
|
|
|
|
LL | #[cfg(android)]
|
|
| ^^^^^^-------^^
|
|
| |
|
|
| help: try: `target_os = "android"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:28:1
|
|
|
|
|
LL | #[cfg(emscripten)]
|
|
| ^^^^^^----------^^
|
|
| |
|
|
| help: try: `target_os = "emscripten"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:31:1
|
|
|
|
|
LL | #[cfg(fuchsia)]
|
|
| ^^^^^^-------^^
|
|
| |
|
|
| help: try: `target_os = "fuchsia"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:34:1
|
|
|
|
|
LL | #[cfg(haiku)]
|
|
| ^^^^^^-----^^
|
|
| |
|
|
| help: try: `target_os = "haiku"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:37:1
|
|
|
|
|
LL | #[cfg(illumos)]
|
|
| ^^^^^^-------^^
|
|
| |
|
|
| help: try: `target_os = "illumos"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:40:1
|
|
|
|
|
LL | #[cfg(l4re)]
|
|
| ^^^^^^----^^
|
|
| |
|
|
| help: try: `target_os = "l4re"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:43:1
|
|
|
|
|
LL | #[cfg(redox)]
|
|
| ^^^^^^-----^^
|
|
| |
|
|
| help: try: `target_os = "redox"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:46:1
|
|
|
|
|
LL | #[cfg(solaris)]
|
|
| ^^^^^^-------^^
|
|
| |
|
|
| help: try: `target_os = "solaris"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:49:1
|
|
|
|
|
LL | #[cfg(vxworks)]
|
|
| ^^^^^^-------^^
|
|
| |
|
|
| help: try: `target_os = "vxworks"`
|
|
|
|
|
= help: did you mean `unix`?
|
|
|
|
error: operating system used in target family position
|
|
--> tests/ui/mismatched_target_os_unix.rs:53:1
|
|
|
|
|
LL | #[cfg(all(not(any(solaris, linux)), freebsd))]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: did you mean `unix`?
|
|
help: try
|
|
|
|
|
LL | #[cfg(all(not(any(target_os = "solaris", linux)), freebsd))]
|
|
| ~~~~~~~~~~~~~~~~~~~~~
|
|
help: try
|
|
|
|
|
LL | #[cfg(all(not(any(solaris, target_os = "linux")), freebsd))]
|
|
| ~~~~~~~~~~~~~~~~~~~
|
|
help: try
|
|
|
|
|
LL | #[cfg(all(not(any(solaris, linux)), target_os = "freebsd"))]
|
|
| ~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
error: aborting due to 17 previous errors
|
|
|