rust/tests/mir-opt/const_prop
Nicholas Nethercote c9c80d2c5f rustfmt tests/mir-opt.
The only non-obvious changes:
- `building/storage_live_dead_in_statics.rs` has a `#[rustfmt::skip]`
  attribute to avoid reformating a table of data.
- Two `.mir` files have slight changes involving line numbers.
- In `unusual_item_types.rs` an `EMIT_MIR` annotation is moved to
  outside a function, which is the usual spot, because `tidy` complains
  if such a comment is indented.

The commit also tweaks the comments in `rustfmt.toml`.
2024-06-03 14:17:16 +10:00
..
address_of_pair.fn0.GVN.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
address_of_pair.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
aggregate.foo.GVN.panic-abort.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
aggregate.foo.GVN.panic-unwind.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
aggregate.main.GVN.panic-abort.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
aggregate.main.GVN.panic-unwind.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
aggregate.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
array_index.main.GVN.32bit.panic-abort.diff Simplify Len. 2024-01-16 22:20:54 +00:00
array_index.main.GVN.32bit.panic-unwind.diff Simplify Len. 2024-01-16 22:20:54 +00:00
array_index.main.GVN.64bit.panic-abort.diff Simplify Len. 2024-01-16 22:20:54 +00:00
array_index.main.GVN.64bit.panic-unwind.diff Simplify Len. 2024-01-16 22:20:54 +00:00
array_index.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
bad_op_div_by_zero.main.GVN.panic-abort.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
bad_op_div_by_zero.main.GVN.panic-unwind.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
bad_op_div_by_zero.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
bad_op_mod_by_zero.main.GVN.panic-abort.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
bad_op_mod_by_zero.main.GVN.panic-unwind.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
bad_op_mod_by_zero.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
bad_op_unsafe_oob_for_slices.main.GVN.32bit.panic-abort.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
bad_op_unsafe_oob_for_slices.main.GVN.32bit.panic-unwind.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
bad_op_unsafe_oob_for_slices.main.GVN.64bit.panic-abort.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
bad_op_unsafe_oob_for_slices.main.GVN.64bit.panic-unwind.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
bad_op_unsafe_oob_for_slices.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
boolean_identities.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
boolean_identities.test.GVN.diff Simplify binary ops. 2024-01-16 22:20:53 +00:00
boxes.main.GVN.panic-abort.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
boxes.main.GVN.panic-unwind.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
boxes.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
cast.main.GVN.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
cast.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
checked_add.main.GVN.panic-abort.diff Remove Rvalue::CheckedBinaryOp 2024-05-17 20:33:02 -07:00
checked_add.main.GVN.panic-unwind.diff Remove Rvalue::CheckedBinaryOp 2024-05-17 20:33:02 -07:00
checked_add.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
control_flow_simplification.hello.GVN.panic-abort.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
control_flow_simplification.hello.GVN.panic-unwind.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
control_flow_simplification.hello.PreCodegen.before.panic-abort.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
control_flow_simplification.hello.PreCodegen.before.panic-unwind.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
control_flow_simplification.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
discriminant.main.GVN.32bit.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
discriminant.main.GVN.64bit.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
discriminant.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
indirect_mutation.bar.GVN.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
indirect_mutation.foo.GVN.diff Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
indirect_mutation.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
indirect.main.GVN.panic-abort.diff Remove Rvalue::CheckedBinaryOp 2024-05-17 20:33:02 -07:00
indirect.main.GVN.panic-unwind.diff Remove Rvalue::CheckedBinaryOp 2024-05-17 20:33:02 -07:00
indirect.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
inherit_overflow.main.GVN.panic-abort.diff Remove Rvalue::CheckedBinaryOp 2024-05-17 20:33:02 -07:00
inherit_overflow.main.GVN.panic-unwind.diff Remove Rvalue::CheckedBinaryOp 2024-05-17 20:33:02 -07:00
inherit_overflow.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
invalid_constant.main.GVN.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
invalid_constant.main.RemoveZsts.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
invalid_constant.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
issue_66971.main.GVN.panic-abort.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
issue_66971.main.GVN.panic-unwind.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
issue_66971.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
issue_67019.main.GVN.panic-abort.diff Do not re-simplify SSA locals. 2024-01-07 13:54:05 +00:00
issue_67019.main.GVN.panic-unwind.diff Do not re-simplify SSA locals. 2024-01-07 13:54:05 +00:00
issue_67019.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
large_array_index.main.GVN.32bit.panic-abort.diff Simplify Len. 2024-01-16 22:20:54 +00:00
large_array_index.main.GVN.32bit.panic-unwind.diff Simplify Len. 2024-01-16 22:20:54 +00:00
large_array_index.main.GVN.64bit.panic-abort.diff Simplify Len. 2024-01-16 22:20:54 +00:00
large_array_index.main.GVN.64bit.panic-unwind.diff Simplify Len. 2024-01-16 22:20:54 +00:00
large_array_index.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
mult_by_zero.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
mult_by_zero.test.GVN.diff Simplify binary ops. 2024-01-16 22:20:53 +00:00
mutable_variable_aggregate_mut_ref.main.GVN.diff Avoid recording no-op replacements. 2024-01-07 13:54:05 +00:00
mutable_variable_aggregate_mut_ref.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
mutable_variable_aggregate_partial_read.main.GVN.panic-abort.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
mutable_variable_aggregate_partial_read.main.GVN.panic-unwind.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
mutable_variable_aggregate_partial_read.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
mutable_variable_aggregate.main.GVN.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
mutable_variable_aggregate.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
mutable_variable_no_prop.main.GVN.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
mutable_variable_no_prop.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
mutable_variable_unprop_assign.main.GVN.panic-abort.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
mutable_variable_unprop_assign.main.GVN.panic-unwind.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
mutable_variable_unprop_assign.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
mutable_variable.main.GVN.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
mutable_variable.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
offset_of.concrete.GVN.panic-abort.diff Update mir-opt tests, add proper regression test 2024-04-28 21:10:09 +01:00
offset_of.concrete.GVN.panic-unwind.diff Update mir-opt tests, add proper regression test 2024-04-28 21:10:09 +01:00
offset_of.generic.GVN.panic-abort.diff Update mir-opt tests, add proper regression test 2024-04-28 21:10:09 +01:00
offset_of.generic.GVN.panic-unwind.diff Update mir-opt tests, add proper regression test 2024-04-28 21:10:09 +01:00
offset_of.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
overwrite_with_const_with_params.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
overwrite_with_const_with_params.size_of.GVN.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
pointer_expose_provenance.main.GVN.panic-abort.diff rename expose_addr to expose_provenance 2024-04-03 16:00:38 +02:00
pointer_expose_provenance.main.GVN.panic-unwind.diff rename expose_addr to expose_provenance 2024-04-03 16:00:38 +02:00
pointer_expose_provenance.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
read_immutable_static.main.GVN.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
read_immutable_static.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
ref_deref_project.main.GVN.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
ref_deref_project.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
ref_deref.main.GVN.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
ref_deref.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
reify_fn_ptr.main.GVN.diff rename expose_addr to expose_provenance 2024-04-03 16:00:38 +02:00
reify_fn_ptr.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
repeat.main.GVN.32bit.panic-abort.diff Simplify Len. 2024-01-16 22:20:54 +00:00
repeat.main.GVN.32bit.panic-unwind.diff Simplify Len. 2024-01-16 22:20:54 +00:00
repeat.main.GVN.64bit.panic-abort.diff Simplify Len. 2024-01-16 22:20:54 +00:00
repeat.main.GVN.64bit.panic-unwind.diff Simplify Len. 2024-01-16 22:20:54 +00:00
repeat.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
return_place.add.GVN.panic-abort.diff Remove Rvalue::CheckedBinaryOp 2024-05-17 20:33:02 -07:00
return_place.add.GVN.panic-unwind.diff Remove Rvalue::CheckedBinaryOp 2024-05-17 20:33:02 -07:00
return_place.add.PreCodegen.before.panic-abort.mir Normalize alloc-id in tests. 2023-10-16 16:29:35 +00:00
return_place.add.PreCodegen.before.panic-unwind.mir Normalize alloc-id in tests. 2023-10-16 16:29:35 +00:00
return_place.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
scalar_literal_propagation.main.GVN.panic-abort.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
scalar_literal_propagation.main.GVN.panic-unwind.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
scalar_literal_propagation.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
slice_len.main.GVN.32bit.panic-abort.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
slice_len.main.GVN.32bit.panic-unwind.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
slice_len.main.GVN.64bit.panic-abort.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
slice_len.main.GVN.64bit.panic-unwind.diff MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
slice_len.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00
switch_int.main.GVN.panic-abort.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
switch_int.main.GVN.panic-unwind.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
switch_int.main.SimplifyConstCondition-after-const-prop.panic-abort.diff Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
switch_int.main.SimplifyConstCondition-after-const-prop.panic-unwind.diff Bless tests 2023-06-23 18:36:25 +01:00
switch_int.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
transmute.from_char.GVN.32bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.from_char.GVN.64bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.invalid_bool.GVN.32bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.invalid_bool.GVN.64bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.invalid_char.GVN.32bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.invalid_char.GVN.64bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.less_as_i8.GVN.32bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.less_as_i8.GVN.64bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
transmute.undef_union_as_integer.GVN.32bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.undef_union_as_integer.GVN.64bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.unreachable_box.GVN.32bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.unreachable_box.GVN.64bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.unreachable_direct.GVN.32bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.unreachable_direct.GVN.64bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.unreachable_mut.GVN.32bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.unreachable_mut.GVN.64bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.unreachable_ref.GVN.32bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.unreachable_ref.GVN.64bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.valid_char.GVN.32bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
transmute.valid_char.GVN.64bit.diff Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
tuple_literal_propagation.main.GVN.panic-abort.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
tuple_literal_propagation.main.GVN.panic-unwind.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
tuple_literal_propagation.rs rustfmt tests/mir-opt. 2024-06-03 14:17:16 +10:00
while_let_loops.change_loop_body.GVN.diff Replace legacy ConstProp by GVN. 2023-12-24 20:08:57 +00:00
while_let_loops.rs mir-opt tests: rename unit-test -> test-mir-pass 2024-04-20 13:19:34 +02:00