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
..
2023-03-12 14:57:38 +01:00
2023-03-06 09:28:49 +00:00
2023-03-05 09:34:00 +13:00
2023-03-06 21:25:43 +08:00
2023-03-09 17:45:13 +00:00
2023-03-09 17:45:13 +00:00
2023-03-09 21:55:00 +01:00
2023-03-12 13:19:46 +00:00
2023-03-08 21:24:52 +01:00
2023-03-09 20:49:11 +00:00
2023-03-13 10:41:50 +00:00
2023-03-07 00:39:34 -05:00
2023-03-11 21:29:28 +00:00
2023-03-12 13:19:46 +00:00
2023-03-12 13:19:46 +00:00
2023-03-10 20:32:24 +13:00
2023-03-12 13:19:46 +00:00
2023-03-06 23:33:07 +00:00
2023-03-12 00:49:35 +00:00
2023-03-11 15:43:11 +01:00
2023-03-03 17:47:48 +00:00
2023-03-12 13:19:46 +00:00
2023-03-10 20:32:24 +13:00
2023-03-11 15:43:11 +01:00
2023-03-03 16:33:11 +01:00
2023-03-12 13:19:46 +00:00
2023-03-12 13:19:46 +00:00
2023-03-07 03:50:22 +00:00
2023-01-11 21:39:07 +00:00
2023-03-12 13:26:37 +00:00
2023-03-08 00:00:18 +00:00
2023-03-12 13:19:46 +00:00
2023-03-11 21:29:28 +00:00
2023-03-12 14:57:38 +01:00
2023-03-11 15:43:11 +01:00
2023-03-08 00:00:18 +00:00
2023-03-09 20:49:11 +00:00
2023-03-06 16:41:56 +01:00
2023-03-12 13:19:46 +00:00
2023-03-09 22:44:58 +08:00
2023-03-03 17:47:48 +00:00
2023-03-09 12:11:52 +01:00
2023-03-02 13:41:17 +01:00
2023-03-02 18:21:44 +00:00
2023-03-10 23:25:32 +05:30
2023-03-11 23:16:46 +00:00
2023-03-09 20:49:11 +00:00
2023-03-03 05:02:34 +00:00
2023-03-12 13:19:46 +00:00
2023-03-09 08:21:17 +00:00
2023-03-12 13:26:37 +00:00
2023-03-09 17:45:13 +00:00
2023-03-05 12:49:01 +03:00
2023-03-12 13:19:46 +00:00
2023-03-12 13:19:46 +00:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:18 +00:00
2023-01-11 09:32:08 +00:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:18 +00:00
2023-01-11 09:32:08 +00:00