|
| 1 | +error: Undefined Behavior: read access through <TAG> (root of the allocation) at ALLOC[0x0] is forbidden |
| 2 | + --> tests/fail/function_calls/arg_inplace_locals_alias.rs:LL:CC |
| 3 | + | |
| 4 | +LL | Call(_unit = callee(Move(non_copy), Move(non_copy)), ReturnTo(after_call), UnwindContinue()) |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here |
| 6 | + | |
| 7 | + = help: this indicates a potential bug in the program: it performed an invalid operation, but the Tree Borrows rules it violated are still experimental |
| 8 | + = help: the accessed tag <TAG> (root of the allocation) is foreign to the protected tag <TAG> (i.e., it is not a child) |
| 9 | + = help: this foreign read access would cause the protected tag <TAG> (currently Active) to become Disabled |
| 10 | + = help: protected tags must never be Disabled |
| 11 | +help: the accessed tag <TAG> was created here |
| 12 | + --> tests/fail/function_calls/arg_inplace_locals_alias.rs:LL:CC |
| 13 | + | |
| 14 | +LL | Call(_unit = callee(Move(non_copy), Move(non_copy)), ReturnTo(after_call), UnwindContinue()) |
| 15 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 16 | +help: the protected tag <TAG> was created here, in the initial state Reserved |
| 17 | + --> tests/fail/function_calls/arg_inplace_locals_alias.rs:LL:CC |
| 18 | + | |
| 19 | +LL | y.0 = 0; |
| 20 | + | ^^^^^^^ |
| 21 | +help: the protected tag <TAG> later transitioned to Active due to a child write access at offsets [0x0..0x4] |
| 22 | + --> tests/fail/function_calls/arg_inplace_locals_alias.rs:LL:CC |
| 23 | + | |
| 24 | +LL | y.0 = 0; |
| 25 | + | ^^^^^^^ |
| 26 | + = help: this transition corresponds to the first write to a 2-phase borrowed mutable reference |
| 27 | + = note: BACKTRACE (of the first span): |
| 28 | + = note: inside `main` at tests/fail/function_calls/arg_inplace_locals_alias.rs:LL:CC |
| 29 | + |
| 30 | +note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace |
| 31 | + |
| 32 | +error: aborting due to 1 previous error |
| 33 | + |
0 commit comments