Skip to content

Commit 2fb35ad

Browse files
committed
Ignore output for some platforms with diverging test output
Get around #53081.
1 parent a9a99df commit 2fb35ad

6 files changed

+18
-6
lines changed

src/test/ui/suggestions/mut-borrow-needed-by-trait.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// FIXME: missing sysroot spans (#53081)
2+
// ignore-i586-unknown-linux-gnu
3+
// ignore-i586-unknown-linux-musl
4+
// ignore-i686-unknown-linux-musl
15
use std::env::args;
26
use std::fs::File;
37
use std::io::{stdout, Write, BufWriter};

src/test/ui/suggestions/mut-borrow-needed-by-trait.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `&dyn std::io::Write: std::io::Write` is not satisfied
2-
--> $DIR/mut-borrow-needed-by-trait.rs:17:29
2+
--> $DIR/mut-borrow-needed-by-trait.rs:21:29
33
|
44
LL | let fp = BufWriter::new(fp);
55
| ^^ the trait `std::io::Write` is not implemented for `&dyn std::io::Write`
@@ -8,7 +8,7 @@ LL | let fp = BufWriter::new(fp);
88
= note: required by `std::io::BufWriter::<W>::new`
99

1010
error[E0277]: the trait bound `&dyn std::io::Write: std::io::Write` is not satisfied
11-
--> $DIR/mut-borrow-needed-by-trait.rs:17:14
11+
--> $DIR/mut-borrow-needed-by-trait.rs:21:14
1212
|
1313
LL | let fp = BufWriter::new(fp);
1414
| ^^^^^^^^^^^^^^ the trait `std::io::Write` is not implemented for `&dyn std::io::Write`
@@ -17,7 +17,7 @@ LL | let fp = BufWriter::new(fp);
1717
= note: required by `std::io::BufWriter`
1818

1919
error[E0277]: the trait bound `&dyn std::io::Write: std::io::Write` is not satisfied
20-
--> $DIR/mut-borrow-needed-by-trait.rs:17:14
20+
--> $DIR/mut-borrow-needed-by-trait.rs:21:14
2121
|
2222
LL | let fp = BufWriter::new(fp);
2323
| ^^^^^^^^^^^^^^^^^^ the trait `std::io::Write` is not implemented for `&dyn std::io::Write`
@@ -26,7 +26,7 @@ LL | let fp = BufWriter::new(fp);
2626
= note: required by `std::io::BufWriter`
2727

2828
error[E0599]: no method named `write_fmt` found for struct `std::io::BufWriter<&dyn std::io::Write>` in the current scope
29-
--> $DIR/mut-borrow-needed-by-trait.rs:22:5
29+
--> $DIR/mut-borrow-needed-by-trait.rs:26:5
3030
|
3131
LL | writeln!(fp, "hello world").unwrap();
3232
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `std::io::BufWriter<&dyn std::io::Write>`

src/test/ui/unique-object-noncopyable.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// FIXME: missing sysroot spans (#53081)
2+
// ignore-i586-unknown-linux-gnu
3+
// ignore-i586-unknown-linux-musl
4+
// ignore-i686-unknown-linux-musl
15
#![feature(box_syntax)]
26

37
trait Foo {

src/test/ui/unique-object-noncopyable.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0599]: no method named `clone` found for struct `std::boxed::Box<dyn Foo>` in the current scope
2-
--> $DIR/unique-object-noncopyable.rs:24:16
2+
--> $DIR/unique-object-noncopyable.rs:28:16
33
|
44
LL | trait Foo {
55
| ---------

src/test/ui/unique-pinned-nocopy.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// FIXME: missing sysroot spans (#53081)
2+
// ignore-i586-unknown-linux-gnu
3+
// ignore-i586-unknown-linux-musl
4+
// ignore-i686-unknown-linux-musl
15
#[derive(Debug)]
26
struct R {
37
b: bool,

src/test/ui/unique-pinned-nocopy.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0599]: no method named `clone` found for struct `std::boxed::Box<R>` in the current scope
2-
--> $DIR/unique-pinned-nocopy.rs:12:16
2+
--> $DIR/unique-pinned-nocopy.rs:16:16
33
|
44
LL | struct R {
55
| -------- doesn't satisfy `R: std::clone::Clone`

0 commit comments

Comments
 (0)