|
1 | 1 | error: operating system used in target family position
|
2 |
| - --> $DIR/mismatched_target_os.rs:8:7 |
| 2 | + --> $DIR/mismatched_target_os.rs:8:1 |
3 | 3 | |
|
4 | 4 | LL | #[cfg(linux)]
|
5 |
| - | ^^^^^ help: try: `target_os = "linux"` |
| 5 | + | ^^^^^^-----^^ |
| 6 | + | | |
| 7 | + | help: try: `target_os = "linux"` |
6 | 8 | |
|
7 | 9 | = note: `-D clippy::mismatched-target-os` implied by `-D warnings`
|
8 | 10 | = help: Did you mean `unix`?
|
9 | 11 |
|
10 | 12 | error: operating system used in target family position
|
11 |
| - --> $DIR/mismatched_target_os.rs:11:7 |
| 13 | + --> $DIR/mismatched_target_os.rs:11:1 |
12 | 14 | |
|
13 | 15 | LL | #[cfg(freebsd)]
|
14 |
| - | ^^^^^^^ help: try: `target_os = "freebsd"` |
| 16 | + | ^^^^^^-------^^ |
| 17 | + | | |
| 18 | + | help: try: `target_os = "freebsd"` |
15 | 19 | |
|
16 | 20 | = help: Did you mean `unix`?
|
17 | 21 |
|
18 | 22 | error: operating system used in target family position
|
19 |
| - --> $DIR/mismatched_target_os.rs:14:7 |
| 23 | + --> $DIR/mismatched_target_os.rs:14:1 |
20 | 24 | |
|
21 | 25 | LL | #[cfg(dragonfly)]
|
22 |
| - | ^^^^^^^^^ help: try: `target_os = "dragonfly"` |
| 26 | + | ^^^^^^---------^^ |
| 27 | + | | |
| 28 | + | help: try: `target_os = "dragonfly"` |
23 | 29 | |
|
24 | 30 | = help: Did you mean `unix`?
|
25 | 31 |
|
26 | 32 | error: operating system used in target family position
|
27 |
| - --> $DIR/mismatched_target_os.rs:17:7 |
| 33 | + --> $DIR/mismatched_target_os.rs:17:1 |
28 | 34 | |
|
29 | 35 | LL | #[cfg(openbsd)]
|
30 |
| - | ^^^^^^^ help: try: `target_os = "openbsd"` |
| 36 | + | ^^^^^^-------^^ |
| 37 | + | | |
| 38 | + | help: try: `target_os = "openbsd"` |
31 | 39 | |
|
32 | 40 | = help: Did you mean `unix`?
|
33 | 41 |
|
34 | 42 | error: operating system used in target family position
|
35 |
| - --> $DIR/mismatched_target_os.rs:20:7 |
| 43 | + --> $DIR/mismatched_target_os.rs:20:1 |
36 | 44 | |
|
37 | 45 | LL | #[cfg(netbsd)]
|
38 |
| - | ^^^^^^ help: try: `target_os = "netbsd"` |
| 46 | + | ^^^^^^------^^ |
| 47 | + | | |
| 48 | + | help: try: `target_os = "netbsd"` |
39 | 49 | |
|
40 | 50 | = help: Did you mean `unix`?
|
41 | 51 |
|
42 | 52 | error: operating system used in target family position
|
43 |
| - --> $DIR/mismatched_target_os.rs:23:7 |
| 53 | + --> $DIR/mismatched_target_os.rs:23:1 |
44 | 54 | |
|
45 | 55 | LL | #[cfg(macos)]
|
46 |
| - | ^^^^^ help: try: `target_os = "macos"` |
| 56 | + | ^^^^^^-----^^ |
| 57 | + | | |
| 58 | + | help: try: `target_os = "macos"` |
47 | 59 | |
|
48 | 60 | = help: Did you mean `unix`?
|
49 | 61 |
|
50 | 62 | error: operating system used in target family position
|
51 |
| - --> $DIR/mismatched_target_os.rs:26:7 |
| 63 | + --> $DIR/mismatched_target_os.rs:26:1 |
52 | 64 | |
|
53 | 65 | LL | #[cfg(ios)]
|
54 |
| - | ^^^ help: try: `target_os = "ios"` |
| 66 | + | ^^^^^^---^^ |
| 67 | + | | |
| 68 | + | help: try: `target_os = "ios"` |
55 | 69 | |
|
56 | 70 | = help: Did you mean `unix`?
|
57 | 71 |
|
58 | 72 | error: operating system used in target family position
|
59 |
| - --> $DIR/mismatched_target_os.rs:29:7 |
| 73 | + --> $DIR/mismatched_target_os.rs:29:1 |
60 | 74 | |
|
61 | 75 | LL | #[cfg(android)]
|
62 |
| - | ^^^^^^^ help: try: `target_os = "android"` |
| 76 | + | ^^^^^^-------^^ |
| 77 | + | | |
| 78 | + | help: try: `target_os = "android"` |
63 | 79 | |
|
64 | 80 | = help: Did you mean `unix`?
|
65 | 81 |
|
66 | 82 | error: operating system used in target family position
|
67 |
| - --> $DIR/mismatched_target_os.rs:32:7 |
| 83 | + --> $DIR/mismatched_target_os.rs:32:1 |
68 | 84 | |
|
69 | 85 | LL | #[cfg(emscripten)]
|
70 |
| - | ^^^^^^^^^^ help: try: `target_os = "emscripten"` |
| 86 | + | ^^^^^^----------^^ |
| 87 | + | | |
| 88 | + | help: try: `target_os = "emscripten"` |
71 | 89 | |
|
72 | 90 | = help: Did you mean `unix`?
|
73 | 91 |
|
74 | 92 | error: operating system used in target family position
|
75 |
| - --> $DIR/mismatched_target_os.rs:35:7 |
| 93 | + --> $DIR/mismatched_target_os.rs:35:1 |
76 | 94 | |
|
77 | 95 | LL | #[cfg(fuchsia)]
|
78 |
| - | ^^^^^^^ help: try: `target_os = "fuchsia"` |
| 96 | + | ^^^^^^-------^^ |
| 97 | + | | |
| 98 | + | help: try: `target_os = "fuchsia"` |
79 | 99 | |
|
80 | 100 | = help: Did you mean `unix`?
|
81 | 101 |
|
82 | 102 | error: operating system used in target family position
|
83 |
| - --> $DIR/mismatched_target_os.rs:38:7 |
| 103 | + --> $DIR/mismatched_target_os.rs:38:1 |
84 | 104 | |
|
85 | 105 | LL | #[cfg(haiku)]
|
86 |
| - | ^^^^^ help: try: `target_os = "haiku"` |
| 106 | + | ^^^^^^-----^^ |
| 107 | + | | |
| 108 | + | help: try: `target_os = "haiku"` |
87 | 109 | |
|
88 | 110 | = help: Did you mean `unix`?
|
89 | 111 |
|
90 | 112 | error: operating system used in target family position
|
91 |
| - --> $DIR/mismatched_target_os.rs:41:7 |
| 113 | + --> $DIR/mismatched_target_os.rs:41:1 |
92 | 114 | |
|
93 | 115 | LL | #[cfg(illumos)]
|
94 |
| - | ^^^^^^^ help: try: `target_os = "illumos"` |
| 116 | + | ^^^^^^-------^^ |
| 117 | + | | |
| 118 | + | help: try: `target_os = "illumos"` |
95 | 119 | |
|
96 | 120 | = help: Did you mean `unix`?
|
97 | 121 |
|
98 | 122 | error: operating system used in target family position
|
99 |
| - --> $DIR/mismatched_target_os.rs:44:7 |
| 123 | + --> $DIR/mismatched_target_os.rs:44:1 |
100 | 124 | |
|
101 | 125 | LL | #[cfg(l4re)]
|
102 |
| - | ^^^^ help: try: `target_os = "l4re"` |
| 126 | + | ^^^^^^----^^ |
| 127 | + | | |
| 128 | + | help: try: `target_os = "l4re"` |
103 | 129 | |
|
104 | 130 | = help: Did you mean `unix`?
|
105 | 131 |
|
106 | 132 | error: operating system used in target family position
|
107 |
| - --> $DIR/mismatched_target_os.rs:47:7 |
| 133 | + --> $DIR/mismatched_target_os.rs:47:1 |
108 | 134 | |
|
109 | 135 | LL | #[cfg(redox)]
|
110 |
| - | ^^^^^ help: try: `target_os = "redox"` |
| 136 | + | ^^^^^^-----^^ |
| 137 | + | | |
| 138 | + | help: try: `target_os = "redox"` |
111 | 139 | |
|
112 | 140 | = help: Did you mean `unix`?
|
113 | 141 |
|
114 | 142 | error: operating system used in target family position
|
115 |
| - --> $DIR/mismatched_target_os.rs:50:7 |
| 143 | + --> $DIR/mismatched_target_os.rs:50:1 |
116 | 144 | |
|
117 | 145 | LL | #[cfg(solaris)]
|
118 |
| - | ^^^^^^^ help: try: `target_os = "solaris"` |
| 146 | + | ^^^^^^-------^^ |
| 147 | + | | |
| 148 | + | help: try: `target_os = "solaris"` |
119 | 149 | |
|
120 | 150 | = help: Did you mean `unix`?
|
121 | 151 |
|
122 | 152 | error: operating system used in target family position
|
123 |
| - --> $DIR/mismatched_target_os.rs:53:7 |
| 153 | + --> $DIR/mismatched_target_os.rs:53:1 |
124 | 154 | |
|
125 | 155 | LL | #[cfg(vxworks)]
|
126 |
| - | ^^^^^^^ help: try: `target_os = "vxworks"` |
| 156 | + | ^^^^^^-------^^ |
| 157 | + | | |
| 158 | + | help: try: `target_os = "vxworks"` |
127 | 159 | |
|
128 | 160 | = help: Did you mean `unix`?
|
129 | 161 |
|
130 | 162 | error: operating system used in target family position
|
131 |
| - --> $DIR/mismatched_target_os.rs:58:7 |
| 163 | + --> $DIR/mismatched_target_os.rs:58:1 |
132 | 164 | |
|
133 | 165 | LL | #[cfg(cloudabi)]
|
134 |
| - | ^^^^^^^^ help: try: `target_os = "cloudabi"` |
| 166 | + | ^^^^^^--------^^ |
| 167 | + | | |
| 168 | + | help: try: `target_os = "cloudabi"` |
135 | 169 |
|
136 | 170 | error: operating system used in target family position
|
137 |
| - --> $DIR/mismatched_target_os.rs:61:7 |
| 171 | + --> $DIR/mismatched_target_os.rs:61:1 |
138 | 172 | |
|
139 | 173 | LL | #[cfg(hermit)]
|
140 |
| - | ^^^^^^ help: try: `target_os = "hermit"` |
| 174 | + | ^^^^^^------^^ |
| 175 | + | | |
| 176 | + | help: try: `target_os = "hermit"` |
141 | 177 |
|
142 | 178 | error: operating system used in target family position
|
143 |
| - --> $DIR/mismatched_target_os.rs:64:7 |
| 179 | + --> $DIR/mismatched_target_os.rs:64:1 |
144 | 180 | |
|
145 | 181 | LL | #[cfg(wasi)]
|
146 |
| - | ^^^^ help: try: `target_os = "wasi"` |
| 182 | + | ^^^^^^----^^ |
| 183 | + | | |
| 184 | + | help: try: `target_os = "wasi"` |
147 | 185 |
|
148 | 186 | error: operating system used in target family position
|
149 |
| - --> $DIR/mismatched_target_os.rs:67:7 |
| 187 | + --> $DIR/mismatched_target_os.rs:67:1 |
150 | 188 | |
|
151 | 189 | LL | #[cfg(none)]
|
152 |
| - | ^^^^ help: try: `target_os = "none"` |
| 190 | + | ^^^^^^----^^ |
| 191 | + | | |
| 192 | + | help: try: `target_os = "none"` |
153 | 193 |
|
154 | 194 | error: operating system used in target family position
|
155 |
| - --> $DIR/mismatched_target_os.rs:71:28 |
| 195 | + --> $DIR/mismatched_target_os.rs:71:1 |
156 | 196 | |
|
157 | 197 | LL | #[cfg(all(not(any(windows, linux)), freebsd))]
|
158 |
| - | ^^^^^ |
| 198 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
159 | 199 | |
|
160 | 200 | = help: Did you mean `unix`?
|
161 | 201 | help: try
|
|
0 commit comments