Skip to content

Commit 9d8fc00

Browse files
committed
Actually, one exception to error messages unchanged.
Do we even bother making a special case for this ?
1 parent 117418f commit 9d8fc00

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/fail/tree-borrows/strongly-protected.stderr

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ help: the strongly protected tag <TAG> was created here, in the initial state Re
1717
|
1818
LL | fn inner(x: &mut i32, f: fn(&mut i32)) {
1919
| ^
20+
help: the strongly protected tag <TAG> then transitioned from Reserved to Active due to a child write access at offsets [0x0..0x4]
21+
--> $DIR/strongly-protected.rs:LL:CC
22+
|
23+
LL | drop(unsafe { Box::from_raw(raw) });
24+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25+
= help: this corresponds to an activation
2026
= note: BACKTRACE (of the first span):
2127
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
2228
= note: inside `<std::alloc::Global as std::alloc::Allocator>::deallocate` at RUSTLIB/alloc/src/alloc.rs:LL:CC

0 commit comments

Comments
 (0)