rust/tests/ui/mir
Matthias Krüger ddda937701
Rollup merge of #143273 - 1c3t3a:enum-check-negative, r=SparrowLii
Make the enum check work for negative discriminants

The discriminant check was not working correctly for negative numbers. This change fixes that by masking out the relevant bits correctly.

Fixes rust-lang/rust#143218.
2025-07-03 05:21:32 +02:00
..
alignment Extend the alignment check to borrows 2025-04-25 12:16:40 +00:00
auxiliary
enum Make the enum check work for negative discriminants 2025-07-02 20:02:27 +03:00
lint compiletest: Support matching on non-json lines in compiler output 2025-05-04 18:27:45 +03:00
mir-inlining
null occured -> occurred 2025-02-08 22:28:21 +00:00
validate compiletest: Support matching on non-json lines in compiler output 2025-05-04 18:27:45 +03:00
build-async-error-body-correctly.rs
build-async-error-body-correctly.stderr
checks_without_panic_impl.rs tests: use minicore more 2025-02-24 09:26:54 +00:00
clone-canonicalization-miscompile-132353.rs
const_eval_select_cycle.rs
debug-ref-undef.rs
drop-elaboration-after-borrowck-error.rs
drop-elaboration-after-borrowck-error.stderr
dyn_metadata_sroa.rs
early-otherwise-branch-ice.rs
enable_passes_validation.all_unknown.stderr
enable_passes_validation.empty.stderr
enable_passes_validation.mixed.stderr
enable_passes_validation.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
enable_passes_validation.unprefixed.stderr
field-projection-invariant.rs
field-projection-mutating-context.rs
field-projection-mutating-context.stderr
field-projection-mutating-context2.rs
field-projection-mutating-context2.stderr
field-ty-ascription-enums.rs
field-ty-ascription.rs
ice-mir-const-qualif-125837.rs
ice-mir-const-qualif-125837.stderr
important-higher-ranked-regions.rs
inline-causes-trimmed-paths.rs Do not trim paths in MIR validator 2025-03-27 17:45:02 +00:00
inline-wrong-abi.rs
inline-wrong-abi.stderr
issue-29227.rs
issue-46845.rs
issue-60390.rs
issue-66851.rs
issue-66930.rs
issue-67639-normalization-ice.rs
issue-67710-inline-projection.rs
issue-67947.rs
issue-67947.stderr
issue-68841.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
issue-71793-inline-args-storage.rs
issue-73914.rs
issue-74739.rs
issue-75053.rs Remove attribute #[rustc_error] 2025-03-30 01:32:21 +03:00
issue-75419-validation-impl-trait.rs
issue-76248.rs
issue-76375.rs
issue-76740-copy-propagation.rs
issue-76803-branches-not-same.rs
issue-77002.rs
issue-77359-simplify-arm-identity.rs
issue-77911.rs
issue-78496.rs
issue-80949.rs
issue-83499-input-output-iteration-ice.rs
issue-83499-input-output-iteration-ice.stderr
issue-89485.rs
issue-91745.rs
issue-92893.rs
issue-92893.stderr
issue-99852.rs Remove let_chains feature gate from even more tests 2025-04-18 15:57:29 +02:00
issue-99866.rs
issue-101844.rs
issue-102389.rs
issue-102389.stderr
issue-105809.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
issue-106062.rs
issue-106062.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-107678-projection-with-lifetime.rs
issue-107691.rs
issue-109004-drop-large-array.rs
issue-109743.rs
issue-112269.rs
issue-112269.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
issue-121103.rs Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
issue-121103.stderr Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
issue66339.rs
mir-build-2021-closure-capture-ice-110453-1.rs
mir-build-2021-closure-capture-ice-110453-1.stderr
mir-build-2021-closure-capture-ice-110453-2.rs
mir-build-2021-closure-capture-ice-110453-2.stderr
mir-typeck-normalize-fn-sig.rs
mir_adt_construction.rs
mir_ascription_coercion.rs
mir_assign_eval_order.rs
mir_augmented_assignments.rs
mir_autoderef.rs
mir_build_match_comparisons.rs
mir_call_with_associated_type.rs
mir_calls_to_shims.rs
mir_cast_fn_ret.rs
mir_codegen_array.rs
mir_codegen_array_2.rs
mir_codegen_call_converging.rs
mir_codegen_calls.rs
mir_codegen_calls_converging_drops.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
mir_codegen_calls_converging_drops_2.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
mir_codegen_calls_diverging.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
mir_codegen_calls_diverging_drops.rs
mir_codegen_critical_edge.rs
mir_codegen_spike1.rs
mir_codegen_ssa.rs
mir_codegen_switch.rs
mir_codegen_switchint.rs
mir_coercion_casts.rs
mir_coercions.rs
mir_const_prop_identity.rs
mir_const_prop_tuple_field_reorder.rs
mir_constval_adts.rs
mir_detects_invalid_ops.rs
mir_detects_invalid_ops.stderr
mir_drop_order.rs
mir_drop_panics.rs
mir_dynamic_drops_1.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
mir_dynamic_drops_2.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
mir_dynamic_drops_3.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
mir_early_return_scope.rs
mir_fat_ptr.rs Replace elided_named_lifetimes with mismatched_lifetime_syntaxes 2025-06-04 10:40:04 -04:00
mir_fat_ptr_drop.rs
mir_heavy_promoted.rs
mir_indexing_oob_1.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
mir_indexing_oob_2.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
mir_indexing_oob_3.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
mir_let_chains_drop_order.rs Remove let_chains feature 2025-06-30 07:49:20 -05:00
mir_match_arm_guard.rs
mir_match_guard_let_chains_drop_order.rs Add match guard chains test, based on mir_let_chains_drop_order.rs 2025-05-13 16:22:52 +02:00
mir_match_test.rs
mir_misc_casts.rs
mir_overflow_off.rs
mir_query_cycle.rs
mir_raw_fat_ptr.rs
mir_raw_fat_ptr.stderr
mir_refs_correct.rs Allow unpredictable_function_pointer_comparisons lint in more places 2025-06-12 07:35:05 +02:00
mir_small_agg_arg.rs
mir_static_subtype.rs
mir_struct_with_assoc_ty.rs
mir_temp_promotions.rs
mir_void_return.rs
mir_void_return_2.rs
remove-zsts-query-cycle.rs
simplify-branch-same.rs
sized-slice-predicate-116721.rs
ssa-analysis-regression-50041.rs
ssa_call_ret.rs
static_fnptr.rs
thir-constparam-temp.rs
thir-constparam-temp.stderr
unreachable-loop-jump-threading.rs Only traverse reachable blocks in JumpThreading. 2025-06-15 21:12:17 +00:00
unreachable-loop-jump-threading.stderr Only traverse reachable blocks in JumpThreading. 2025-06-15 21:12:17 +00:00
unsize-trait.rs
var_debug_ref.rs Collect items referenced from var_debug_info 2025-03-26 11:35:34 +01:00