Skip to content

Commit

Permalink
Remove some OSes from the test to comply with stderr line limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ebroto committed Apr 25, 2020
1 parent da6a5d3 commit 67da32e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 40 deletions.
6 changes: 0 additions & 6 deletions tests/ui/mismatched_target_os.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ fn fuchsia() {}
#[cfg(target_os = "haiku")]
fn haiku() {}

#[cfg(target_os = "illumos")]
fn illumos() {}

#[cfg(target_os = "l4re")]
fn l4re() {}

#[cfg(target_os = "redox")]
fn redox() {}

Expand Down
6 changes: 0 additions & 6 deletions tests/ui/mismatched_target_os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ fn fuchsia() {}
#[cfg(haiku)]
fn haiku() {}

#[cfg(illumos)]
fn illumos() {}

#[cfg(l4re)]
fn l4re() {}

#[cfg(redox)]
fn redox() {}

Expand Down
36 changes: 8 additions & 28 deletions tests/ui/mismatched_target_os.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -112,26 +112,6 @@ LL | #[cfg(haiku)]
error: operating system used in target family position
--> $DIR/mismatched_target_os.rs:41: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.rs:44: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.rs:47:1
|
LL | #[cfg(redox)]
| ^^^^^^-----^^
| |
Expand All @@ -140,7 +120,7 @@ LL | #[cfg(redox)]
= help: Did you mean `unix`?

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

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

error: operating system used in target family position
--> $DIR/mismatched_target_os.rs:58:1
--> $DIR/mismatched_target_os.rs:52:1
|
LL | #[cfg(cloudabi)]
| ^^^^^^--------^^
| |
| help: try: `target_os = "cloudabi"`

error: operating system used in target family position
--> $DIR/mismatched_target_os.rs:61:1
--> $DIR/mismatched_target_os.rs:55:1
|
LL | #[cfg(hermit)]
| ^^^^^^------^^
| |
| help: try: `target_os = "hermit"`

error: operating system used in target family position
--> $DIR/mismatched_target_os.rs:64:1
--> $DIR/mismatched_target_os.rs:58:1
|
LL | #[cfg(wasi)]
| ^^^^^^----^^
| |
| help: try: `target_os = "wasi"`

error: operating system used in target family position
--> $DIR/mismatched_target_os.rs:67:1
--> $DIR/mismatched_target_os.rs:61:1
|
LL | #[cfg(none)]
| ^^^^^^----^^
| |
| help: try: `target_os = "none"`

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

error: aborting due to 21 previous errors
error: aborting due to 19 previous errors

0 comments on commit 67da32e

Please sign in to comment.