rust/compiler/rustc_parse/src/parser
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
..
attr.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
attr_wrapper.rs Match unmatched backticks in comments in compiler/ 2023-03-03 08:39:00 +01:00
diagnostics.rs feat/refactor: improve errors in case of ident with number at start 2023-03-09 21:29:32 +13:00
expr.rs Auto merge of #108471 - clubby789:unbox-the-syntax, r=Nilstrieb,est31 2023-03-13 10:41:50 +00:00
generics.rs Use ThinVec in various AST types. 2023-02-21 11:51:56 +11:00
item.rs Remove unclosed_delims from parser 2023-03-03 23:09:36 +00:00
mod.rs Gate const closures even when they appear in macros 2023-03-11 21:29:28 +00:00
nonterminal.rs rustc_parse: migrate more to diagnostic structs 2023-02-01 21:50:34 +01:00
pat.rs feat/refactor: improve errors in case of ident with number at start 2023-03-09 21:29:32 +13:00
path.rs Replace parse_[sth]_expr with parse_expr_[sth] function names 2023-02-24 05:12:03 +01:00
stmt.rs feat/refactor: improve errors in case of ident with number at start 2023-03-09 21:29:32 +13:00
ty.rs Gate all usages of dyn*, even in macros 2023-03-11 21:29:28 +00:00