about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-09 08:55:50 +0000
committerbors <bors@rust-lang.org>2024-08-09 08:55:50 +0000
commitd36e1571a55e3c36c026855220ad94df75e977a4 (patch)
tree2c4d4aa957c9a3dac9409aae2042bb57c0ddd637 /tests/codegen/patchable-function-entry
parentdc9f4e8c4c6be7da1220e29434bef91ef774ab15 (diff)
parentdc54f1dccda757c2fb19c53914045da23672e457 (diff)
downloadrust-d36e1571a55e3c36c026855220ad94df75e977a4.tar.gz
rust-d36e1571a55e3c36c026855220ad94df75e977a4.zip
Auto merge of #3797 - zachs18:no-borrow-no-panic, r=RalfJung
Don't panic on `miri_print_borrow_state()` under `-Zmiri-disable-stacked-borrows`.

Fixes #3459

Instead, just print "attempted to print borrow state, but no borrow state is being tracked" directly to ~~stdout~~ stderr and return successfully. Alternately, the diagnostic machinery could be used to print a structured error/warning.

 (Does not address the comment about nothing being printed for `miri_print_borrow_state` with `alloc_id = 0`)
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions