Skip to content

Commit c4bf5f9

Browse files
committed
Temporary workaround for travis diagnostic difference
1 parent e7d6675 commit c4bf5f9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/test/ui/generator/static-not-unpin.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![feature(generators)]
22

3+
// normalize-stderr-test "std::pin::Unpin" -> "std::marker::Unpin"
4+
35
use std::marker::Unpin;
46

57
fn assert_unpin<T: Unpin>(_: T) {

src/test/ui/generator/static-not-unpin.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
error[E0277]: the trait bound `[static generator@$DIR/static-not-unpin.rs:9:25: 11:6 _]: std::marker::Unpin` is not satisfied
2-
--> $DIR/static-not-unpin.rs:12:5
1+
error[E0277]: the trait bound `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6 _]: std::marker::Unpin` is not satisfied
2+
--> $DIR/static-not-unpin.rs:14:5
33
|
44
LL | assert_unpin(generator); //~ ERROR std::marker::Unpin` is not satisfied
5-
| ^^^^^^^^^^^^ the trait `std::marker::Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:9:25: 11:6 _]`
5+
| ^^^^^^^^^^^^ the trait `std::marker::Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6 _]`
66
|
77
note: required by `assert_unpin`
8-
--> $DIR/static-not-unpin.rs:5:1
8+
--> $DIR/static-not-unpin.rs:7:1
99
|
1010
LL | fn assert_unpin<T: Unpin>(_: T) {
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)