rust/src/tools/miri/tests/fail
Stuart Cook 123611f208
Rollup merge of #152756 - RalfJung:miri-recursive-box, r=Kivooeo
Miri: recursive validity: also recurse into Boxes

Now that https://github.com/rust-lang/rust/issues/97270 is fixed, the recursive validity mode for Miri can recuse into Boxes without exploding everywhere.
2026-02-18 17:29:50 +11:00
..
alloc make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
both_borrows replace box_new in Box::new with write_via_move 2026-02-16 08:44:56 +01:00
concurrency make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
dangling_pointers Do not mention -Zmacro-backtrace for std macros that are a wrapper around a compiler intrinsic 2026-01-26 17:34:31 +00:00
data_race stabilize ptr_as_ref_unchecked 2026-02-02 19:47:32 +01:00
function_calls Do not mention -Zmacro-backtrace for std macros that are a wrapper around a compiler intrinsic 2026-01-26 17:34:31 +00:00
function_pointers document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
intrinsics Do not mention -Zmacro-backtrace for std macros that are a wrapper around a compiler intrinsic 2026-01-26 17:34:31 +00:00
match fmt 2026-02-15 18:20:47 +01:00
panic make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
provenance Do not mention -Zmacro-backtrace for std macros that are a wrapper around a compiler intrinsic 2026-01-26 17:34:31 +00:00
shims bless UI test referencing outdated paths 2026-01-02 18:32:34 +01:00
stacked_borrows Do not mention -Zmacro-backtrace for std macros that are a wrapper around a compiler intrinsic 2026-01-26 17:34:31 +00:00
tail_calls tail calls: fix copying non-scalar arguments to callee 2026-02-17 22:17:58 +01:00
tls adjust how backtraces get rendered; always show thread name when there are multiple threads 2025-12-29 23:14:39 +01:00
tree_borrows Do not mention -Zmacro-backtrace for std macros that are a wrapper around a compiler intrinsic 2026-01-26 17:34:31 +00:00
unaligned_pointers make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
uninit make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
validity Miri: recursive validity: also recurse into Boxes 2026-02-17 15:13:58 +01:00
weak_memory make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
async-shared-mutable.rs add Miri tests 2025-05-28 10:56:09 +02:00
async-shared-mutable.stack.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
async-shared-mutable.tree.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
box-cell-alias.rs Add 'src/tools/miri/' from commit '75dd959a3a' 2022-09-21 15:36:26 +00:00
box-cell-alias.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
branchless-select-i128-pointer.rs Allow integer_to_ptr_transmutes in tests 2025-08-24 00:03:54 +02:00
branchless-select-i128-pointer.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
breakpoint.rs miri: Adapt for breakpoint becoming safe 2024-12-03 00:01:51 -08:00
breakpoint.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
c-variadic-mismatch-count.rs move va_list operations into InterpCx 2026-02-14 22:55:26 +01:00
c-variadic-mismatch-count.stderr move va_list operations into InterpCx 2026-02-14 22:55:26 +01:00
c-variadic-mismatch.rs move va_list operations into InterpCx 2026-02-14 22:55:26 +01:00
c-variadic-mismatch.stderr move va_list operations into InterpCx 2026-02-14 22:55:26 +01:00
c-variadic.rs move va_list operations into InterpCx 2026-02-14 22:55:26 +01:00
c-variadic.stderr move va_list operations into InterpCx 2026-02-14 22:55:26 +01:00
const-ub-checks.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-ub-checks.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
coroutine-pinned-moved.rs let rustfmt format imports 2024-09-29 19:26:32 +02:00
coroutine-pinned-moved.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
deny_lint.rs refactor and unify top-level error handling a bit 2025-11-14 23:24:09 +01:00
deny_lint.stderr refactor and unify top-level error handling a bit 2025-11-14 23:24:09 +01:00
dyn-call-trait-mismatch.rs Check vtable projections for validity in miri 2024-09-23 19:38:26 -04:00
dyn-call-trait-mismatch.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
dyn-upcast-nop-wrong-trait.rs Miri: detect wrong vtables in wide pointers 2024-04-21 13:04:51 +02:00
dyn-upcast-nop-wrong-trait.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
dyn-upcast-trait-mismatch.rs remove use of feature(trait_upcasting) from miri 2025-02-06 23:44:23 +01:00
dyn-upcast-trait-mismatch.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
enum-set-discriminant-niche-variant-wrong.rs remove a bunch of unnecessary 'pub' from tests 2025-10-12 19:39:31 +02:00
enum-set-discriminant-niche-variant-wrong.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
enum-untagged-variant-invalid-encoding.rs improve TagEncoding::Niche docs and sanity check 2024-11-30 18:26:30 +01:00
enum-untagged-variant-invalid-encoding.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
environ-gets-deallocated.rs Bump ui test 2024-09-16 23:05:42 +02:00
environ-gets-deallocated.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
erroneous_const.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
erroneous_const.stderr Clarify why we are talking about a failed const eval at a random place 2025-06-02 15:37:15 +00:00
erroneous_const2.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
erroneous_const2.stderr Do not mention -Zmacro-backtrace for std macros that are a wrapper around a compiler intrinsic 2026-01-26 17:34:31 +00:00
extern-type-field-offset.rs also add a Miri test 2023-12-12 17:19:19 +01:00
extern-type-field-offset.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
extern_static.rs miri: fixup for allowing &raw UNSAFE_STATIC 2024-07-22 14:54:36 -07:00
extern_static.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
extern_static_in_const.rs Add 'src/tools/miri/' from commit '75dd959a3a' 2022-09-21 15:36:26 +00:00
extern_static_in_const.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
extern_static_wrong_size.rs Bump ui test 2024-09-16 23:05:42 +02:00
extern_static_wrong_size.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
intrinsic_fallback_is_spec.rs remove support for rustc_safe_intrinsic attribute; use rustc_intrinsic functions instead 2024-11-08 09:16:00 +01:00
intrinsic_fallback_is_spec.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
issue-miri-1112.rs remove a bunch of unnecessary 'pub' from tests 2025-10-12 19:39:31 +02:00
issue-miri-1112.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
issue-miri-3288-ice-symbolic-alignment-extern-static.rs fmt 2024-02-08 05:14:42 +00:00
issue-miri-3288-ice-symbolic-alignment-extern-static.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
layout_cycle.rs Revert "Auto merge of #113166 - moulins:ref-niches-initial, r=oli-obk" 2023-07-21 22:35:57 -07:00
layout_cycle.stderr Replace NullOp::SizeOf and NullOp::AlignOf by lang items. 2025-10-23 00:38:28 +00:00
memleak.rs make basic allocation functions track_caller in Miri for nicer backtraces 2024-09-11 22:38:21 +02:00
memleak.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
memleak_no_backtrace.rs tell people how to set miri flags 2024-06-17 12:55:17 +02:00
memleak_no_backtrace.stderr tell people how to set miri flags 2024-06-17 12:55:17 +02:00
memleak_rc.rs tell people how to set miri flags 2024-06-17 12:55:17 +02:00
memleak_rc.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
miri_start_wrong_sig.rs Add miri_start support 2024-08-02 14:02:34 +02:00
miri_start_wrong_sig.stderr Bump ui test 2024-09-16 23:05:42 +02:00
modifying_constants.rs Rename cast_ref_to_mut lint to invalid_reference_casting 2023-07-13 23:01:24 +02:00
modifying_constants.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
never_match_never.rs Add miri test matching on !. 2023-10-24 15:30:17 +00:00
never_match_never.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
never_say_never.rs Drive-by-cleanup: Don't emit thir::ExprKind::NeverToAny for ! -> ! 2023-05-19 21:50:01 +04:00
never_say_never.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
never_transmute_humans.rs Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
never_transmute_humans.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
never_transmute_void.rs make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
never_transmute_void.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
no_main.rs Add miri_start support 2024-08-02 14:02:34 +02:00
no_main.stderr unsafe(no_mangle) in miri_start examples 2025-04-27 13:49:51 +02:00
overlapping_assignment.rs remove a bunch of unnecessary 'pub' from tests 2025-10-12 19:39:31 +02:00
overlapping_assignment.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
overlapping_assignment_aggregate.rs interpret: fix overlapping aggregate initialization 2025-09-10 15:59:11 +02:00
overlapping_assignment_aggregate.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
ptr_swap_nonoverlapping.rs improve process::abort rendering in Miri backtraces 2025-09-02 12:19:06 +02:00
ptr_swap_nonoverlapping.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
rc_as_ptr.rs properly track why we checked whether a pointer is in-bounds 2023-08-01 17:57:13 +02:00
rc_as_ptr.stderr Do not mention -Zmacro-backtrace for std macros that are a wrapper around a compiler intrinsic 2026-01-26 17:34:31 +00:00
read_from_trivial_switch.rs Show the memory of uninit reads 2025-07-18 07:47:08 +00:00
read_from_trivial_switch.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
reading_half_a_pointer.rs don't inhibit random field reordering on repr(packed(1)) 2024-05-21 19:22:04 +02:00
reading_half_a_pointer.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
rustc-error.rs Add 'src/tools/miri/' from commit '75dd959a3a' 2022-09-21 15:36:26 +00:00
rustc-error.stderr Bump ui test 2024-09-16 23:05:42 +02:00
rustc-error2.rs Unify wording of resolve error 2026-02-17 16:51:44 +00:00
rustc-error2.stderr Unify wording of resolve error 2026-02-17 16:51:44 +00:00
static_memory_modification1.rs Add 'src/tools/miri/' from commit '75dd959a3a' 2022-09-21 15:36:26 +00:00
static_memory_modification1.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
static_memory_modification2.rs Add 'src/tools/miri/' from commit '75dd959a3a' 2022-09-21 15:36:26 +00:00
static_memory_modification2.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
static_memory_modification3.rs Add 'src/tools/miri/' from commit '75dd959a3a' 2022-09-21 15:36:26 +00:00
static_memory_modification3.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
storage-live-dead-var.rs add Miri tests 2024-06-14 12:14:32 +02:00
storage-live-dead-var.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
storage-live-resets-var.rs add Miri tests 2024-06-14 12:14:32 +02:00
storage-live-resets-var.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
terminate-terminator.rs improve process::abort rendering in Miri backtraces 2025-09-02 12:19:06 +02:00
terminate-terminator.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
tls_macro_leak.rs remove a bunch of unnecessary 'pub' from tests 2025-10-12 19:39:31 +02:00
tls_macro_leak.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
tls_static_leak.rs remove a bunch of unnecessary 'pub' from tests 2025-10-12 19:39:31 +02:00
tls_static_leak.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
type-too-large.rs Bump ui test 2024-09-16 23:05:42 +02:00
type-too-large.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
unreachable.rs Add 'src/tools/miri/' from commit '75dd959a3a' 2022-09-21 15:36:26 +00:00
unreachable.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
unsupported_foreign_function.rs handle unknown targets more gracefully 2022-12-28 10:51:13 +01:00
unsupported_foreign_function.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00
unwind-action-terminate.rs improve process::abort rendering in Miri backtraces 2025-09-02 12:19:06 +02:00
unwind-action-terminate.stderr make backtrace look a lot like panics 2025-12-30 20:14:26 +01:00
zst_local_oob.rs interpret: better error message for out-of-bounds pointer arithmetic and accesses 2025-04-30 18:45:41 +02:00
zst_local_oob.stderr document -Zmiri-backtrace; dont print backtrace when there's only one frame 2025-10-30 10:35:20 +01:00