2020-04-25 18:55:46 +00:00
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:4:1
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
|
|
|
LL | #[cfg(linux)]
|
2020-04-25 21:52:36 +00:00
|
|
|
| ^^^^^^-----^^
|
|
|
|
| |
|
|
|
|
| help: try: `target_os = "linux"`
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::mismatched-target-os` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::mismatched_target_os)]`
|
2020-04-22 21:01:25 +00:00
|
|
|
|
2020-04-25 18:55:46 +00:00
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:7:1
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
|
|
|
LL | #[cfg(freebsd)]
|
2020-04-25 21:52:36 +00:00
|
|
|
| ^^^^^^-------^^
|
|
|
|
| |
|
|
|
|
| help: try: `target_os = "freebsd"`
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-22 21:01:25 +00:00
|
|
|
|
2020-04-25 18:55:46 +00:00
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:10:1
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
|
|
|
LL | #[cfg(dragonfly)]
|
2020-04-25 21:52:36 +00:00
|
|
|
| ^^^^^^---------^^
|
|
|
|
| |
|
|
|
|
| help: try: `target_os = "dragonfly"`
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-22 21:01:25 +00:00
|
|
|
|
2020-04-25 18:55:46 +00:00
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:13:1
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
|
|
|
LL | #[cfg(openbsd)]
|
2020-04-25 21:52:36 +00:00
|
|
|
| ^^^^^^-------^^
|
|
|
|
| |
|
|
|
|
| help: try: `target_os = "openbsd"`
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-22 21:01:25 +00:00
|
|
|
|
2020-04-25 18:55:46 +00:00
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:16:1
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
|
|
|
LL | #[cfg(netbsd)]
|
2020-04-25 21:52:36 +00:00
|
|
|
| ^^^^^^------^^
|
|
|
|
| |
|
|
|
|
| help: try: `target_os = "netbsd"`
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-22 21:01:25 +00:00
|
|
|
|
2020-04-25 18:55:46 +00:00
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:19:1
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
|
|
|
LL | #[cfg(macos)]
|
2020-04-25 21:52:36 +00:00
|
|
|
| ^^^^^^-----^^
|
|
|
|
| |
|
|
|
|
| help: try: `target_os = "macos"`
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-22 21:01:25 +00:00
|
|
|
|
2020-04-25 18:55:46 +00:00
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:22:1
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
|
|
|
LL | #[cfg(ios)]
|
2020-04-25 21:52:36 +00:00
|
|
|
| ^^^^^^---^^
|
|
|
|
| |
|
|
|
|
| help: try: `target_os = "ios"`
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-22 21:01:25 +00:00
|
|
|
|
2020-04-25 18:55:46 +00:00
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:25:1
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
|
|
|
LL | #[cfg(android)]
|
2020-04-25 21:52:36 +00:00
|
|
|
| ^^^^^^-------^^
|
|
|
|
| |
|
|
|
|
| help: try: `target_os = "android"`
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-22 21:01:25 +00:00
|
|
|
|
2020-04-25 18:55:46 +00:00
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:28:1
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
2020-04-25 18:55:46 +00:00
|
|
|
LL | #[cfg(emscripten)]
|
2020-04-25 21:52:36 +00:00
|
|
|
| ^^^^^^----------^^
|
|
|
|
| |
|
|
|
|
| help: try: `target_os = "emscripten"`
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:31:1
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
|
|
|
LL | #[cfg(fuchsia)]
|
2020-04-25 21:52:36 +00:00
|
|
|
| ^^^^^^-------^^
|
|
|
|
| |
|
|
|
|
| help: try: `target_os = "fuchsia"`
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:34:1
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
|
|
|
LL | #[cfg(haiku)]
|
2020-04-25 21:52:36 +00:00
|
|
|
| ^^^^^^-----^^
|
|
|
|
| |
|
|
|
|
| help: try: `target_os = "haiku"`
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:37:1
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2020-04-26 19:26:19 +00:00
|
|
|
LL | #[cfg(illumos)]
|
|
|
|
| ^^^^^^-------^^
|
2020-04-25 21:52:36 +00:00
|
|
|
| |
|
2020-04-26 19:26:19 +00:00
|
|
|
| help: try: `target_os = "illumos"`
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:40:1
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2020-04-26 19:26:19 +00:00
|
|
|
LL | #[cfg(l4re)]
|
|
|
|
| ^^^^^^----^^
|
2020-04-25 21:52:36 +00:00
|
|
|
| |
|
2020-04-26 19:26:19 +00:00
|
|
|
| help: try: `target_os = "l4re"`
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:43:1
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2020-04-26 19:26:19 +00:00
|
|
|
LL | #[cfg(redox)]
|
|
|
|
| ^^^^^^-----^^
|
2020-04-25 21:52:36 +00:00
|
|
|
| |
|
2020-04-26 19:26:19 +00:00
|
|
|
| help: try: `target_os = "redox"`
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:46:1
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2020-04-26 19:26:19 +00:00
|
|
|
LL | #[cfg(solaris)]
|
|
|
|
| ^^^^^^-------^^
|
2020-04-25 21:52:36 +00:00
|
|
|
| |
|
2020-04-26 19:26:19 +00:00
|
|
|
| help: try: `target_os = "solaris"`
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:49:1
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2020-04-26 19:26:19 +00:00
|
|
|
LL | #[cfg(vxworks)]
|
|
|
|
| ^^^^^^-------^^
|
2020-04-25 21:52:36 +00:00
|
|
|
| |
|
2020-04-26 19:26:19 +00:00
|
|
|
| help: try: `target_os = "vxworks"`
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-25 18:55:46 +00:00
|
|
|
|
|
|
|
error: operating system used in target family position
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/mismatched_target_os_unix.rs:53:1
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
2020-04-26 19:26:19 +00:00
|
|
|
LL | #[cfg(all(not(any(solaris, linux)), freebsd))]
|
2020-04-25 21:52:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-04-22 21:01:25 +00:00
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: did you mean `unix`?
|
2020-04-25 18:55:46 +00:00
|
|
|
help: try
|
|
|
|
|
|
2020-04-26 19:26:19 +00:00
|
|
|
LL | #[cfg(all(not(any(target_os = "solaris", linux)), freebsd))]
|
2021-08-11 14:21:33 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~
|
2020-04-26 19:26:19 +00:00
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | #[cfg(all(not(any(solaris, target_os = "linux")), freebsd))]
|
2021-08-11 14:21:33 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~
|
2020-04-25 18:55:46 +00:00
|
|
|
help: try
|
|
|
|
|
|
2020-04-26 19:26:19 +00:00
|
|
|
LL | #[cfg(all(not(any(solaris, linux)), target_os = "freebsd"))]
|
2021-08-11 14:21:33 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~
|
2020-04-22 21:01:25 +00:00
|
|
|
|
2020-04-26 19:26:19 +00:00
|
|
|
error: aborting due to 17 previous errors
|
2020-04-22 21:01:25 +00:00
|
|
|
|