Skip to content

Commit 4a405c9

Browse files
committed
Remove some OSes from the test to comply with stderr line limit
1 parent ce50e42 commit 4a405c9

File tree

3 files changed

+8
-40
lines changed

3 files changed

+8
-40
lines changed

tests/ui/mismatched_target_os.fixed

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ fn fuchsia() {}
3838
#[cfg(target_os = "haiku")]
3939
fn haiku() {}
4040

41-
#[cfg(target_os = "illumos")]
42-
fn illumos() {}
43-
44-
#[cfg(target_os = "l4re")]
45-
fn l4re() {}
46-
4741
#[cfg(target_os = "redox")]
4842
fn redox() {}
4943

tests/ui/mismatched_target_os.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ fn fuchsia() {}
3838
#[cfg(haiku)]
3939
fn haiku() {}
4040

41-
#[cfg(illumos)]
42-
fn illumos() {}
43-
44-
#[cfg(l4re)]
45-
fn l4re() {}
46-
4741
#[cfg(redox)]
4842
fn redox() {}
4943

tests/ui/mismatched_target_os.stderr

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -112,26 +112,6 @@ LL | #[cfg(haiku)]
112112
error: operating system used in target family position
113113
--> $DIR/mismatched_target_os.rs:41:1
114114
|
115-
LL | #[cfg(illumos)]
116-
| ^^^^^^-------^^
117-
| |
118-
| help: try: `target_os = "illumos"`
119-
|
120-
= help: Did you mean `unix`?
121-
122-
error: operating system used in target family position
123-
--> $DIR/mismatched_target_os.rs:44:1
124-
|
125-
LL | #[cfg(l4re)]
126-
| ^^^^^^----^^
127-
| |
128-
| help: try: `target_os = "l4re"`
129-
|
130-
= help: Did you mean `unix`?
131-
132-
error: operating system used in target family position
133-
--> $DIR/mismatched_target_os.rs:47:1
134-
|
135115
LL | #[cfg(redox)]
136116
| ^^^^^^-----^^
137117
| |
@@ -140,7 +120,7 @@ LL | #[cfg(redox)]
140120
= help: Did you mean `unix`?
141121

142122
error: operating system used in target family position
143-
--> $DIR/mismatched_target_os.rs:50:1
123+
--> $DIR/mismatched_target_os.rs:44:1
144124
|
145125
LL | #[cfg(solaris)]
146126
| ^^^^^^-------^^
@@ -150,7 +130,7 @@ LL | #[cfg(solaris)]
150130
= help: Did you mean `unix`?
151131

152132
error: operating system used in target family position
153-
--> $DIR/mismatched_target_os.rs:53:1
133+
--> $DIR/mismatched_target_os.rs:47:1
154134
|
155135
LL | #[cfg(vxworks)]
156136
| ^^^^^^-------^^
@@ -160,39 +140,39 @@ LL | #[cfg(vxworks)]
160140
= help: Did you mean `unix`?
161141

162142
error: operating system used in target family position
163-
--> $DIR/mismatched_target_os.rs:58:1
143+
--> $DIR/mismatched_target_os.rs:52:1
164144
|
165145
LL | #[cfg(cloudabi)]
166146
| ^^^^^^--------^^
167147
| |
168148
| help: try: `target_os = "cloudabi"`
169149

170150
error: operating system used in target family position
171-
--> $DIR/mismatched_target_os.rs:61:1
151+
--> $DIR/mismatched_target_os.rs:55:1
172152
|
173153
LL | #[cfg(hermit)]
174154
| ^^^^^^------^^
175155
| |
176156
| help: try: `target_os = "hermit"`
177157

178158
error: operating system used in target family position
179-
--> $DIR/mismatched_target_os.rs:64:1
159+
--> $DIR/mismatched_target_os.rs:58:1
180160
|
181161
LL | #[cfg(wasi)]
182162
| ^^^^^^----^^
183163
| |
184164
| help: try: `target_os = "wasi"`
185165

186166
error: operating system used in target family position
187-
--> $DIR/mismatched_target_os.rs:67:1
167+
--> $DIR/mismatched_target_os.rs:61:1
188168
|
189169
LL | #[cfg(none)]
190170
| ^^^^^^----^^
191171
| |
192172
| help: try: `target_os = "none"`
193173

194174
error: operating system used in target family position
195-
--> $DIR/mismatched_target_os.rs:71:1
175+
--> $DIR/mismatched_target_os.rs:65:1
196176
|
197177
LL | #[cfg(all(not(any(windows, linux)), freebsd))]
198178
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -207,5 +187,5 @@ help: try
207187
LL | #[cfg(all(not(any(windows, linux)), target_os = "freebsd"))]
208188
| ^^^^^^^^^^^^^^^^^^^^^
209189

210-
error: aborting due to 21 previous errors
190+
error: aborting due to 19 previous errors
211191

0 commit comments

Comments
 (0)