Skip to content

Commit 6fa47e1

Browse files
committed
bless miri
1 parent 69c09dd commit 6fa47e1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/tools/miri/tests/fail/coroutine-pinned-moved.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
error: Undefined Behavior: memory access failed: ALLOC has been freed, so this pointer is dangling
2-
--> $DIR/generator-pinned-moved.rs:LL:CC
2+
--> $DIR/coroutine-pinned-moved.rs:LL:CC
33
|
44
LL | *num += 1;
55
| ^^^^^^^^^ memory access failed: ALLOC has been freed, so this pointer is dangling
66
|
77
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
help: ALLOC was allocated here:
10-
--> $DIR/generator-pinned-moved.rs:LL:CC
10+
--> $DIR/coroutine-pinned-moved.rs:LL:CC
1111
|
1212
LL | let mut coroutine_iterator = Box::new(CoroutineIteratorAdapter(firstn()));
1313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1414
help: ALLOC was deallocated here:
15-
--> $DIR/generator-pinned-moved.rs:LL:CC
15+
--> $DIR/coroutine-pinned-moved.rs:LL:CC
1616
|
1717
LL | }; // *deallocate* coroutine_iterator
1818
| ^
1919
= note: BACKTRACE (of the first span):
20-
= note: inside closure at $DIR/generator-pinned-moved.rs:LL:CC
21-
note: inside `<CoroutineIteratorAdapter<{static coroutine@$DIR/generator-pinned-moved.rs:LL:CC}> as std::iter::Iterator>::next`
22-
--> $DIR/generator-pinned-moved.rs:LL:CC
20+
= note: inside closure at $DIR/coroutine-pinned-moved.rs:LL:CC
21+
note: inside `<CoroutineIteratorAdapter<{static coroutine@$DIR/coroutine-pinned-moved.rs:LL:CC}> as std::iter::Iterator>::next`
22+
--> $DIR/coroutine-pinned-moved.rs:LL:CC
2323
|
2424
LL | match me.resume(()) {
2525
| ^^^^^^^^^^^^^
26-
= note: inside `<std::boxed::Box<CoroutineIteratorAdapter<{static coroutine@$DIR/generator-pinned-moved.rs:LL:CC}>> as std::iter::Iterator>::next` at RUSTLIB/alloc/src/boxed.rs:LL:CC
26+
= note: inside `<std::boxed::Box<CoroutineIteratorAdapter<{static coroutine@$DIR/coroutine-pinned-moved.rs:LL:CC}>> as std::iter::Iterator>::next` at RUSTLIB/alloc/src/boxed.rs:LL:CC
2727
note: inside `main`
28-
--> $DIR/generator-pinned-moved.rs:LL:CC
28+
--> $DIR/coroutine-pinned-moved.rs:LL:CC
2929
|
3030
LL | coroutine_iterator_2.next(); // and use moved value
3131
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)