granite-rust/compiler/rustc_ast_lowering/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
..
asm.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
block.rs rustc_ast_lowering: remove ref patterns 2022-11-22 18:49:29 +00:00
errors.rs Restrict #[rustc_box] to Box::new calls 2023-03-02 02:42:19 +00:00
expr.rs Remove box_syntax from AST and use in tools 2023-03-12 13:19:46 +00:00
format.rs Add ErrorGuaranteed to HIR ExprKind::Err 2023-02-25 19:46:36 +00:00
index.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
item.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00
lib.rs Auto merge of #108820 - cjgillot:ensure-on-disk, r=oli-obk 2023-03-12 14:00:28 +00:00
lifetime_collector.rs Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
pat.rs Add ErrorGuaranteed to HIR ExprKind::Err 2023-02-25 19:46:36 +00:00
path.rs Add help for #![feature(impl_trait_in_fn_trait_return)] 2022-12-06 17:53:50 -08:00