fix tests
Paths in CI can be longer than in devs' machines.
This commit is contained in:
parent
143b072c62
commit
7e0d3ed951
@ -1,15 +1,15 @@
|
||||
error[E0277]: `{static coroutine@$DIR/static-not-unpin.rs:15:5: 15:14}` cannot be unpinned
|
||||
--> $DIR/static-not-unpin.rs:18:18
|
||||
error[E0277]: `{static coroutine@$DIR/static-not-unpin.rs:16:5: 16:14}` cannot be unpinned
|
||||
--> $DIR/static-not-unpin.rs:19:18
|
||||
|
|
||||
LL | assert_unpin(coroutine);
|
||||
| ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/static-not-unpin.rs:15:5: 15:14}`
|
||||
| ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/static-not-unpin.rs:16:5: 16:14}`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= note: consider using the `pin!` macro
|
||||
consider using `Box::pin` if you need to access the pinned value outside of the current scope
|
||||
note: required by a bound in `assert_unpin`
|
||||
--> $DIR/static-not-unpin.rs:11:20
|
||||
--> $DIR/static-not-unpin.rs:12:20
|
||||
|
|
||||
LL | fn assert_unpin<T: Unpin>(_: T) {}
|
||||
| ^^^^^ required by this bound in `assert_unpin`
|
||||
|
@ -1,15 +1,15 @@
|
||||
error[E0277]: `{static coroutine@$DIR/static-not-unpin.rs:15:5: 15:14}` cannot be unpinned
|
||||
--> $DIR/static-not-unpin.rs:18:18
|
||||
error[E0277]: `{static coroutine@$DIR/static-not-unpin.rs:16:5: 16:14}` cannot be unpinned
|
||||
--> $DIR/static-not-unpin.rs:19:18
|
||||
|
|
||||
LL | assert_unpin(coroutine);
|
||||
| ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/static-not-unpin.rs:15:5: 15:14}`
|
||||
| ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/static-not-unpin.rs:16:5: 16:14}`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= note: consider using the `pin!` macro
|
||||
consider using `Box::pin` if you need to access the pinned value outside of the current scope
|
||||
note: required by a bound in `assert_unpin`
|
||||
--> $DIR/static-not-unpin.rs:11:20
|
||||
--> $DIR/static-not-unpin.rs:12:20
|
||||
|
|
||||
LL | fn assert_unpin<T: Unpin>(_: T) {}
|
||||
| ^^^^^ required by this bound in `assert_unpin`
|
||||
|
@ -1,6 +1,7 @@
|
||||
//@ revisions: current next
|
||||
//@ ignore-compare-mode-next-solver (explicit revisions)
|
||||
//@[next] compile-flags: -Znext-solver
|
||||
//@[next] compile-flags: -Znext-solver --diagnostic-width=300
|
||||
//@[current] compile-flags: --diagnostic-width=300
|
||||
|
||||
#![feature(coroutines, stmt_expr_attributes)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ compile-flags: -Znext-solver
|
||||
//@ compile-flags: -Znext-solver --diagnostic-width=300
|
||||
//@ edition: 2021
|
||||
//@ revisions: pass fail
|
||||
//@[pass] check-pass
|
||||
|
Loading…
Reference in New Issue
Block a user