Skip to content

Commit

Permalink
Temporary workaround for travis diagnostic difference
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo157 committed Jan 27, 2019
1 parent e7d6675 commit c4bf5f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/test/ui/generator/static-not-unpin.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![feature(generators)]

// normalize-stderr-test "std::pin::Unpin" -> "std::marker::Unpin"

use std::marker::Unpin;

fn assert_unpin<T: Unpin>(_: T) {
Expand Down
8 changes: 4 additions & 4 deletions src/test/ui/generator/static-not-unpin.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error[E0277]: the trait bound `[static generator@$DIR/static-not-unpin.rs:9:25: 11:6 _]: std::marker::Unpin` is not satisfied
--> $DIR/static-not-unpin.rs:12:5
error[E0277]: the trait bound `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6 _]: std::marker::Unpin` is not satisfied
--> $DIR/static-not-unpin.rs:14:5
|
LL | assert_unpin(generator); //~ ERROR std::marker::Unpin` is not satisfied
| ^^^^^^^^^^^^ the trait `std::marker::Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:9:25: 11:6 _]`
| ^^^^^^^^^^^^ the trait `std::marker::Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6 _]`
|
note: required by `assert_unpin`
--> $DIR/static-not-unpin.rs:5:1
--> $DIR/static-not-unpin.rs:7:1
|
LL | fn assert_unpin<T: Unpin>(_: T) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit c4bf5f9

Please sign in to comment.