rust/compiler/rustc_ast_passes/src
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
..
ast_validation.rs Remove allow(potential_query_instability) from ast_passes 2023-03-04 12:39:54 +00:00
errors.rs Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
feature_gate.rs Auto merge of #108471 - clubby789:unbox-the-syntax, r=Nilstrieb,est31 2023-03-13 10:41:50 +00:00
lib.rs Simplify message paths 2023-03-11 22:51:57 +01:00
node_count.rs Remove unused span argument from walk_fn. 2022-09-12 13:24:27 +10:00
show_span.rs Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00