Skip to content

Commit

Permalink
Ignore output for some platforms with diverging test output
Browse files Browse the repository at this point in the history
Get around rust-lang#53081.
  • Loading branch information
estebank committed Feb 28, 2020
1 parent a9a99df commit 2fb35ad
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/test/ui/suggestions/mut-borrow-needed-by-trait.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// FIXME: missing sysroot spans (#53081)
// ignore-i586-unknown-linux-gnu
// ignore-i586-unknown-linux-musl
// ignore-i686-unknown-linux-musl
use std::env::args;
use std::fs::File;
use std::io::{stdout, Write, BufWriter};
Expand Down
8 changes: 4 additions & 4 deletions src/test/ui/suggestions/mut-borrow-needed-by-trait.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0277]: the trait bound `&dyn std::io::Write: std::io::Write` is not satisfied
--> $DIR/mut-borrow-needed-by-trait.rs:17:29
--> $DIR/mut-borrow-needed-by-trait.rs:21:29
|
LL | let fp = BufWriter::new(fp);
| ^^ the trait `std::io::Write` is not implemented for `&dyn std::io::Write`
Expand All @@ -8,7 +8,7 @@ LL | let fp = BufWriter::new(fp);
= note: required by `std::io::BufWriter::<W>::new`

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

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

error[E0599]: no method named `write_fmt` found for struct `std::io::BufWriter<&dyn std::io::Write>` in the current scope
--> $DIR/mut-borrow-needed-by-trait.rs:22:5
--> $DIR/mut-borrow-needed-by-trait.rs:26:5
|
LL | writeln!(fp, "hello world").unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `std::io::BufWriter<&dyn std::io::Write>`
Expand Down
4 changes: 4 additions & 0 deletions src/test/ui/unique-object-noncopyable.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// FIXME: missing sysroot spans (#53081)
// ignore-i586-unknown-linux-gnu
// ignore-i586-unknown-linux-musl
// ignore-i686-unknown-linux-musl
#![feature(box_syntax)]

trait Foo {
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/unique-object-noncopyable.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0599]: no method named `clone` found for struct `std::boxed::Box<dyn Foo>` in the current scope
--> $DIR/unique-object-noncopyable.rs:24:16
--> $DIR/unique-object-noncopyable.rs:28:16
|
LL | trait Foo {
| ---------
Expand Down
4 changes: 4 additions & 0 deletions src/test/ui/unique-pinned-nocopy.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// FIXME: missing sysroot spans (#53081)
// ignore-i586-unknown-linux-gnu
// ignore-i586-unknown-linux-musl
// ignore-i686-unknown-linux-musl
#[derive(Debug)]
struct R {
b: bool,
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/unique-pinned-nocopy.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0599]: no method named `clone` found for struct `std::boxed::Box<R>` in the current scope
--> $DIR/unique-pinned-nocopy.rs:12:16
--> $DIR/unique-pinned-nocopy.rs:16:16
|
LL | struct R {
| -------- doesn't satisfy `R: std::clone::Clone`
Expand Down

0 comments on commit 2fb35ad

Please sign in to comment.