rust/tests/mir-opt/const_prop
bors f1b1ed7e18 Auto merge of #108471 - clubby789:unbox-the-syntax, r=Nilstrieb,est31
Remove `box_syntax`

r? `@Nilstrieb`

This removes the feature `box_syntax`, which allows the use of `box <expr>` to create a Box, and finalises removing use of the feature from the compiler. `box_patterns` (allowing the use of `box <pat>` in a pattern) is unaffected.
It also removes `ast::ExprKind::Box` - the only way to create a 'box' expression now is with the rustc-internal `#[rustc_box]` attribute.
As a temporary measure to help users move away, `box <expr>` now parses the inner expression, and emits a `MachineApplicable` lint to replace it with `Box::new`

Closes #49733
2023-03-13 10:41:50 +00:00
..
aggregate.foo.ConstProp.diff Add partial propagation test. 2023-02-02 23:26:29 +00:00
aggregate.foo.PreCodegen.after.mir Add partial propagation test. 2023-02-02 23:26:29 +00:00
aggregate.main.ConstProp.diff Add partial propagation test. 2023-02-02 23:26:29 +00:00
aggregate.main.PreCodegen.after.mir Add partial propagation test. 2023-02-02 23:26:29 +00:00
aggregate.rs Add partial propagation test. 2023-02-02 23:26:29 +00:00
array_index.main.ConstProp.32bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array_index.main.ConstProp.64bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array_index.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad_op_div_by_zero.main.ConstProp.diff Remove overflow checks from ConstProp. 2023-02-18 21:35:02 +00:00
bad_op_div_by_zero.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad_op_mod_by_zero.main.ConstProp.diff Remove OnlyPropagateInto. 2023-03-08 14:40:37 +00:00
bad_op_mod_by_zero.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad_op_unsafe_oob_for_slices.main.ConstProp.32bit.diff Reimplement NormalizeArrayLen. 2023-01-29 21:19:02 +00:00
bad_op_unsafe_oob_for_slices.main.ConstProp.64bit.diff Reimplement NormalizeArrayLen. 2023-01-29 21:19:02 +00:00
bad_op_unsafe_oob_for_slices.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
boolean_identities.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
boolean_identities.test.ConstProp.diff Implement SSA CopyProp pass. 2023-01-27 18:22:45 +00:00
boxes.main.ConstProp.diff Remove uses of box_syntax in rustc and tools 2023-03-12 13:19:46 +00:00
boxes.rs Remove uses of box_syntax in rustc and tools 2023-03-12 13:19:46 +00:00
cast.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cast.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
checked_add.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
checked_add.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const_prop_fails_gracefully.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const_prop_fails_gracefully.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
control_flow_simplification.hello.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
control_flow_simplification.hello.PreCodegen.before.mir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
control_flow_simplification.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
discriminant.main.ConstProp.32bit.diff Bless 32bit. 2023-03-08 14:40:38 +00:00
discriminant.main.ConstProp.64bit.diff Do not track span in ConstProp. 2023-03-08 14:40:37 +00:00
discriminant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
indirect.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
indirect.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
inherit_overflow.main.ConstProp.diff Remove overflow checks from ConstProp. 2023-02-18 21:35:02 +00:00
inherit_overflow.rs Remove overflow checks from ConstProp. 2023-02-18 21:35:02 +00:00
invalid_constant.main.ConstProp.diff Do not track span in ConstProp. 2023-03-08 14:40:37 +00:00
invalid_constant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue_66971.main.ConstProp.diff Bless tests. 2023-02-02 23:26:26 +00:00
issue_66971.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue_67019.main.ConstProp.diff Bless tests. 2023-02-02 23:26:26 +00:00
issue_67019.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
large_array_index.main.ConstProp.32bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
large_array_index.main.ConstProp.64bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
large_array_index.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mult_by_zero.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mult_by_zero.test.ConstProp.diff Implement SSA CopyProp pass. 2023-01-27 18:22:45 +00:00
mutable_variable_aggregate_mut_ref.main.ConstProp.diff Simplify construction of replacement map. 2023-02-05 11:44:18 +00:00
mutable_variable_aggregate_mut_ref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable_aggregate_partial_read.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable_aggregate_partial_read.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable_aggregate.main.ConstProp.diff Run SROA to fixpoint. 2023-02-05 12:08:42 +00:00
mutable_variable_aggregate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable_no_prop.main.ConstProp.diff Fix mir-opt tests for big-endian platforms 2023-01-12 18:05:30 +01:00
mutable_variable_no_prop.rs Fix mir-opt tests for big-endian platforms 2023-01-12 18:05:30 +01:00
mutable_variable_unprop_assign.main.ConstProp.diff Simplify construction of replacement map. 2023-02-05 11:44:18 +00:00
mutable_variable_unprop_assign.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
optimizes_into_variable.main.ConstProp.32bit.diff Bless 32bit tests. 2023-02-05 13:51:37 +00:00
optimizes_into_variable.main.ConstProp.64bit.diff Fix SROA without deaggregation. 2023-02-05 08:37:03 +00:00
optimizes_into_variable.main.PreCodegen.after.32bit.mir Bless 32bit tests. 2023-02-05 13:51:37 +00:00
optimizes_into_variable.main.PreCodegen.after.64bit.mir Fix SROA without deaggregation. 2023-02-05 08:37:03 +00:00
optimizes_into_variable.main.ScalarReplacementOfAggregates.32bit.diff Bless 32bit tests. 2023-02-05 13:51:37 +00:00
optimizes_into_variable.main.ScalarReplacementOfAggregates.64bit.diff Simplify construction of replacement map. 2023-02-05 11:44:18 +00:00
optimizes_into_variable.main.SimplifyLocals-final.after.32bit.mir Bless 32bit tests. 2023-02-05 13:51:37 +00:00
optimizes_into_variable.main.SimplifyLocals-final.after.64bit.mir Fix SROA without deaggregation. 2023-02-05 08:37:03 +00:00
optimizes_into_variable.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
read_immutable_static.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
read_immutable_static.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ref_deref_project.main.ConstProp.diff Make tests unit. 2023-01-27 18:22:44 +00:00
ref_deref_project.rs Make tests unit. 2023-01-27 18:22:44 +00:00
ref_deref.main.ConstProp.diff Make tests unit. 2023-01-27 18:22:44 +00:00
ref_deref.rs Make tests unit. 2023-01-27 18:22:44 +00:00
reify_fn_ptr.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reify_fn_ptr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat.main.ConstProp.32bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat.main.ConstProp.64bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
return_place.add.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
return_place.add.PreCodegen.before.mir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
return_place.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
scalar_literal_propagation.main.ConstProp.diff Remove both StorageLive and StorageDead in CopyProp. 2023-01-31 17:50:04 +00:00
scalar_literal_propagation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice_len.main.ConstProp.32bit.diff Make tests unit. 2023-01-27 18:22:44 +00:00
slice_len.main.ConstProp.64bit.diff Make tests unit. 2023-01-27 18:22:44 +00:00
slice_len.rs Make tests unit. 2023-01-27 18:22:44 +00:00
switch_int.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
switch_int.main.SimplifyConstCondition-after-const-prop.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
switch_int.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tuple_literal_propagation.main.ConstProp.diff Bless tests. 2023-02-02 23:26:26 +00:00
tuple_literal_propagation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00