summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/mismatched_target_os_unix.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/tools/clippy/tests/ui/mismatched_target_os_unix.stderr
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/clippy/tests/ui/mismatched_target_os_unix.stderr')
-rw-r--r--src/tools/clippy/tests/ui/mismatched_target_os_unix.stderr183
1 files changed, 183 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/mismatched_target_os_unix.stderr b/src/tools/clippy/tests/ui/mismatched_target_os_unix.stderr
new file mode 100644
index 000000000..3534b5328
--- /dev/null
+++ b/src/tools/clippy/tests/ui/mismatched_target_os_unix.stderr
@@ -0,0 +1,183 @@
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:6:1
+ |
+LL | #[cfg(linux)]
+ | ^^^^^^-----^^
+ | |
+ | help: try: `target_os = "linux"`
+ |
+ = note: `-D clippy::mismatched-target-os` implied by `-D warnings`
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:9:1
+ |
+LL | #[cfg(freebsd)]
+ | ^^^^^^-------^^
+ | |
+ | help: try: `target_os = "freebsd"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:12:1
+ |
+LL | #[cfg(dragonfly)]
+ | ^^^^^^---------^^
+ | |
+ | help: try: `target_os = "dragonfly"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:15:1
+ |
+LL | #[cfg(openbsd)]
+ | ^^^^^^-------^^
+ | |
+ | help: try: `target_os = "openbsd"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:18:1
+ |
+LL | #[cfg(netbsd)]
+ | ^^^^^^------^^
+ | |
+ | help: try: `target_os = "netbsd"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:21:1
+ |
+LL | #[cfg(macos)]
+ | ^^^^^^-----^^
+ | |
+ | help: try: `target_os = "macos"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:24:1
+ |
+LL | #[cfg(ios)]
+ | ^^^^^^---^^
+ | |
+ | help: try: `target_os = "ios"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:27:1
+ |
+LL | #[cfg(android)]
+ | ^^^^^^-------^^
+ | |
+ | help: try: `target_os = "android"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:30:1
+ |
+LL | #[cfg(emscripten)]
+ | ^^^^^^----------^^
+ | |
+ | help: try: `target_os = "emscripten"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:33:1
+ |
+LL | #[cfg(fuchsia)]
+ | ^^^^^^-------^^
+ | |
+ | help: try: `target_os = "fuchsia"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:36:1
+ |
+LL | #[cfg(haiku)]
+ | ^^^^^^-----^^
+ | |
+ | help: try: `target_os = "haiku"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:39:1
+ |
+LL | #[cfg(illumos)]
+ | ^^^^^^-------^^
+ | |
+ | help: try: `target_os = "illumos"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:42:1
+ |
+LL | #[cfg(l4re)]
+ | ^^^^^^----^^
+ | |
+ | help: try: `target_os = "l4re"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:45:1
+ |
+LL | #[cfg(redox)]
+ | ^^^^^^-----^^
+ | |
+ | help: try: `target_os = "redox"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:48:1
+ |
+LL | #[cfg(solaris)]
+ | ^^^^^^-------^^
+ | |
+ | help: try: `target_os = "solaris"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:51:1
+ |
+LL | #[cfg(vxworks)]
+ | ^^^^^^-------^^
+ | |
+ | help: try: `target_os = "vxworks"`
+ |
+ = help: did you mean `unix`?
+
+error: operating system used in target family position
+ --> $DIR/mismatched_target_os_unix.rs:55: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
+