Skip to content

Commit 75f0bac

Browse files
committed
compiletest seems to have trouble normalizing coroutine filepath
1 parent bf12596 commit 75f0bac

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
fn stalled_copy_clone() {
1717
type T = impl Copy;
1818
let foo: T = async {};
19-
//~^ ERROR: the trait bound `{async block@$DIR/stalled-coroutine-obligations.rs:18:18: 18:23}: Copy` is not satisfied [E0277]
19+
//~^ ERROR: the trait bound
2020

2121
type U = impl Clone;
2222
let bar: U = async {};
23-
//~^ ERROR: the trait bound `{async block@$DIR/stalled-coroutine-obligations.rs:22:18: 22:23}: Clone` is not satisfied [E0277]
23+
//~^ ERROR: the trait bound
2424
}
2525

2626
auto trait Valid {}
@@ -31,16 +31,16 @@ fn stalled_auto_traits() {
3131
type T = impl Valid;
3232
let a = False;
3333
let foo: T = async { a };
34-
//~^ ERROR: the trait bound `False: Valid` is not satisfied in `{async block@$DIR/stalled-coroutine-obligations.rs:33:18: 33:23}` [E0277]
34+
//~^ ERROR: the trait bound `False: Valid` is not satisfied
3535
}
3636

3737

3838
trait Trait {
3939
fn stalled_send(&self, b: *mut ()) -> impl Future + Send {
40-
//~^ ERROR: type mismatch resolving `impl Future + Send == {async block@$DIR/stalled-coroutine-obligations.rs:42:9: 42:19}` [E0271]
41-
//~| ERROR: type mismatch resolving `{async block@$DIR/stalled-coroutine-obligations.rs:42:9: 42:19} <: impl Future + Send` [E0271]
40+
//~^ ERROR: type mismatch resolving
41+
//~| ERROR: type mismatch resolving
4242
async move {
43-
//~^ ERROR: type mismatch resolving `impl Future + Send == {async block@$DIR/stalled-coroutine-obligations.rs:42:9: 42:19}` [E0271]
43+
//~^ ERROR: type mismatch resolving
4444
b
4545
}
4646
}

tests/ui/traits/next-solver/stalled-coroutine-obligations.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ LL | fn stalled_send(&self, b: *mut ()) -> impl Future + Send {
4242
error[E0271]: type mismatch resolving `impl Future + Send == {async block@$DIR/stalled-coroutine-obligations.rs:42:9: 42:19}`
4343
--> $DIR/stalled-coroutine-obligations.rs:42:9
4444
|
45-
LL | / ... async move {
46-
LL | | ...
47-
LL | | ... b
48-
LL | | ... }
49-
| |_______^ types differ
45+
LL | / async move {
46+
LL | |
47+
LL | | b
48+
LL | | }
49+
| |_________^ types differ
5050

5151
error[E0271]: type mismatch resolving `{async block@$DIR/stalled-coroutine-obligations.rs:42:9: 42:19} <: impl Future + Send`
5252
--> $DIR/stalled-coroutine-obligations.rs:39:62

0 commit comments

Comments
 (0)