Skip to content

Commit 7e0d3ed

Browse files
committed
fix tests
Paths in CI can be longer than in devs' machines.
1 parent 143b072 commit 7e0d3ed

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

tests/ui/coroutine/static-not-unpin.current.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
error[E0277]: `{static coroutine@$DIR/static-not-unpin.rs:15:5: 15:14}` cannot be unpinned
2-
--> $DIR/static-not-unpin.rs:18:18
1+
error[E0277]: `{static coroutine@$DIR/static-not-unpin.rs:16:5: 16:14}` cannot be unpinned
2+
--> $DIR/static-not-unpin.rs:19:18
33
|
44
LL | assert_unpin(coroutine);
5-
| ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/static-not-unpin.rs:15:5: 15:14}`
5+
| ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/static-not-unpin.rs:16:5: 16:14}`
66
| |
77
| required by a bound introduced by this call
88
|
99
= note: consider using the `pin!` macro
1010
consider using `Box::pin` if you need to access the pinned value outside of the current scope
1111
note: required by a bound in `assert_unpin`
12-
--> $DIR/static-not-unpin.rs:11:20
12+
--> $DIR/static-not-unpin.rs:12:20
1313
|
1414
LL | fn assert_unpin<T: Unpin>(_: T) {}
1515
| ^^^^^ required by this bound in `assert_unpin`

tests/ui/coroutine/static-not-unpin.next.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
error[E0277]: `{static coroutine@$DIR/static-not-unpin.rs:15:5: 15:14}` cannot be unpinned
2-
--> $DIR/static-not-unpin.rs:18:18
1+
error[E0277]: `{static coroutine@$DIR/static-not-unpin.rs:16:5: 16:14}` cannot be unpinned
2+
--> $DIR/static-not-unpin.rs:19:18
33
|
44
LL | assert_unpin(coroutine);
5-
| ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/static-not-unpin.rs:15:5: 15:14}`
5+
| ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/static-not-unpin.rs:16:5: 16:14}`
66
| |
77
| required by a bound introduced by this call
88
|
99
= note: consider using the `pin!` macro
1010
consider using `Box::pin` if you need to access the pinned value outside of the current scope
1111
note: required by a bound in `assert_unpin`
12-
--> $DIR/static-not-unpin.rs:11:20
12+
--> $DIR/static-not-unpin.rs:12:20
1313
|
1414
LL | fn assert_unpin<T: Unpin>(_: T) {}
1515
| ^^^^^ required by this bound in `assert_unpin`

tests/ui/coroutine/static-not-unpin.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//@ revisions: current next
22
//@ ignore-compare-mode-next-solver (explicit revisions)
3-
//@[next] compile-flags: -Znext-solver
3+
//@[next] compile-flags: -Znext-solver --diagnostic-width=300
4+
//@[current] compile-flags: --diagnostic-width=300
45

56
#![feature(coroutines, stmt_expr_attributes)]
67

tests/ui/traits/next-solver/coroutine.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ compile-flags: -Znext-solver
1+
//@ compile-flags: -Znext-solver --diagnostic-width=300
22
//@ edition: 2021
33
//@ revisions: pass fail
44
//@[pass] check-pass

0 commit comments

Comments
 (0)