Skip to content

Commit eac2b02

Browse files
committed
ignore musl target in tests to avoid issues with output differences
1 parent 9d6555c commit eac2b02

23 files changed

+52
-28
lines changed

src/etc/generate-deriving-span-tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
os.path.join(os.path.dirname(__file__), '../test/ui/derives/'))
1515

1616
TEMPLATE = """\
17+
// ignore-musl
18+
// ^ due to stderr output differences
1719
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
1820
1921
{error_deriving}

src/test/ui/async-await/issues/issue-62009-1.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// edition:2018
2+
// ignore-musl
3+
// ^ due to stderr output differences
24

35
async fn print_dur() {}
46

src/test/ui/async-await/issues/issue-62009-1.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error[E0728]: `await` is only allowed inside `async` functions and blocks
2-
--> $DIR/issue-62009-1.rs:6:5
2+
--> $DIR/issue-62009-1.rs:8:5
33
|
44
LL | fn main() {
55
| ---- this is not `async`
66
LL | async { let (); }.await;
77
| ^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks
88

99
error[E0728]: `await` is only allowed inside `async` functions and blocks
10-
--> $DIR/issue-62009-1.rs:8:5
10+
--> $DIR/issue-62009-1.rs:10:5
1111
|
1212
LL | fn main() {
1313
| ---- this is not `async`
@@ -19,19 +19,19 @@ LL | | }.await;
1919
| |___________^ only allowed inside `async` functions and blocks
2020

2121
error[E0728]: `await` is only allowed inside `async` functions and blocks
22-
--> $DIR/issue-62009-1.rs:12:5
22+
--> $DIR/issue-62009-1.rs:14:5
2323
|
2424
LL | fn main() {
2525
| ---- this is not `async`
2626
...
2727
LL | (|_| 2333).await;
2828
| ^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks
2929

30-
error[E0277]: the trait bound `[closure@$DIR/issue-62009-1.rs:12:5: 12:15]: std::future::Future` is not satisfied
31-
--> $DIR/issue-62009-1.rs:12:5
30+
error[E0277]: the trait bound `[closure@$DIR/issue-62009-1.rs:14:5: 14:15]: std::future::Future` is not satisfied
31+
--> $DIR/issue-62009-1.rs:14:5
3232
|
3333
LL | (|_| 2333).await;
34-
| ^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `[closure@$DIR/issue-62009-1.rs:12:5: 12:15]`
34+
| ^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `[closure@$DIR/issue-62009-1.rs:14:5: 14:15]`
3535
|
3636
::: $SRC_DIR/libstd/future.rs:LL:COL
3737
|

src/test/ui/closures/closure-move-sync.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// ignore-musl
2+
// ^ due to stderr output differences
13
use std::thread;
24
use std::sync::mpsc::channel;
35

src/test/ui/closures/closure-move-sync.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
2-
--> $DIR/closure-move-sync.rs:6:13
2+
--> $DIR/closure-move-sync.rs:8:13
33
|
44
LL | let t = thread::spawn(|| {
55
| ^^^^^^^^^^^^^ `std::sync::mpsc::Receiver<()>` cannot be shared between threads safely
@@ -11,10 +11,10 @@ LL | F: FnOnce() -> T, F: Send + 'static, T: Send + 'static
1111
|
1212
= help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Receiver<()>`
1313
= note: required because of the requirements on the impl of `std::marker::Send` for `&std::sync::mpsc::Receiver<()>`
14-
= note: required because it appears within the type `[closure@$DIR/closure-move-sync.rs:6:27: 9:6 recv:&std::sync::mpsc::Receiver<()>]`
14+
= note: required because it appears within the type `[closure@$DIR/closure-move-sync.rs:8:27: 11:6 recv:&std::sync::mpsc::Receiver<()>]`
1515

1616
error[E0277]: `std::sync::mpsc::Sender<()>` cannot be shared between threads safely
17-
--> $DIR/closure-move-sync.rs:18:5
17+
--> $DIR/closure-move-sync.rs:20:5
1818
|
1919
LL | thread::spawn(|| tx.send(()).unwrap());
2020
| ^^^^^^^^^^^^^ `std::sync::mpsc::Sender<()>` cannot be shared between threads safely
@@ -26,7 +26,7 @@ LL | F: FnOnce() -> T, F: Send + 'static, T: Send + 'static
2626
|
2727
= help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Sender<()>`
2828
= note: required because of the requirements on the impl of `std::marker::Send` for `&std::sync::mpsc::Sender<()>`
29-
= note: required because it appears within the type `[closure@$DIR/closure-move-sync.rs:18:19: 18:42 tx:&std::sync::mpsc::Sender<()>]`
29+
= note: required because it appears within the type `[closure@$DIR/closure-move-sync.rs:20:19: 20:42 tx:&std::sync::mpsc::Sender<()>]`
3030

3131
error: aborting due to 2 previous errors
3232

src/test/ui/derives/derives-span-Hash-enum-struct-variant.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// ignore-musl
2+
// ^ due to stderr output differences
13
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
24

35

src/test/ui/derives/derives-span-Hash-enum-struct-variant.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
2-
--> $DIR/derives-span-Hash-enum-struct-variant.rs:9:6
2+
--> $DIR/derives-span-Hash-enum-struct-variant.rs:11:6
33
|
44
LL | x: Error
55
| ^^^^^^^^ the trait `std::hash::Hash` is not implemented for `Error`

src/test/ui/derives/derives-span-Hash-enum.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// ignore-musl
2+
// ^ due to stderr output differences
13
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
24

35

src/test/ui/derives/derives-span-Hash-enum.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `Error: std::hash::Hash` is not satisfied
2-
--> $DIR/derives-span-Hash-enum.rs:9:6
2+
--> $DIR/derives-span-Hash-enum.rs:11:6
33
|
44
LL | Error
55
| ^^^^^ the trait `std::hash::Hash` is not implemented for `Error`

src/test/ui/derives/derives-span-Hash-struct.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// ignore-musl
2+
// ^ due to stderr output differences
13
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
24

35

0 commit comments

Comments
 (0)