rust/compiler
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
..
rustc fix link 2023-03-11 10:53:47 -06:00
rustc_abi
rustc_apfloat
rustc_arena
rustc_ast Remove box_syntax from AST and use in tools 2023-03-12 13:19:46 +00:00
rustc_ast_lowering Auto merge of #108471 - clubby789:unbox-the-syntax, r=Nilstrieb,est31 2023-03-13 10:41:50 +00:00
rustc_ast_passes Auto merge of #108471 - clubby789:unbox-the-syntax, r=Nilstrieb,est31 2023-03-13 10:41:50 +00:00
rustc_ast_pretty Remove box_syntax from AST and use in tools 2023-03-12 13:19:46 +00:00
rustc_attr Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_baked_icu_data
rustc_borrowck Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_builtin_macros Remove box_syntax from AST and use in tools 2023-03-12 13:19:46 +00:00
rustc_codegen_cranelift Remove uses of box_syntax in rustc and tools 2023-03-12 13:19:46 +00:00
rustc_codegen_gcc Remove uses of box_syntax in rustc and tools 2023-03-12 13:19:46 +00:00
rustc_codegen_llvm Rollup merge of #108726 - est31:backticks_matchmaking_tidy, r=Nilstrieb 2023-03-12 08:13:25 +01:00
rustc_codegen_ssa Allow #[target_feature] on main and start for WASM 2023-03-12 14:57:38 +01:00
rustc_const_eval Auto merge of #108872 - cjgillot:simp-const-prop, r=oli-obk 2023-03-12 23:27:52 +00:00
rustc_data_structures
rustc_driver
rustc_driver_impl Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_error_codes Remove uses of box_syntax in rustc and tools 2023-03-12 13:19:46 +00:00
rustc_error_messages Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_errors Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_expand Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_feature Remove box_syntax from AST and use in tools 2023-03-12 13:19:46 +00:00
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_analysis Allow #[target_feature] on main and start for WASM 2023-03-12 14:57:38 +01:00
rustc_hir_pretty Remove uses of box_syntax in rustc and tools 2023-03-12 13:19:46 +00:00
rustc_hir_typeck Rollup merge of #108726 - est31:backticks_matchmaking_tidy, r=Nilstrieb 2023-03-12 08:13:25 +01:00
rustc_incremental Auto merge of #108794 - nnethercote:avoid-unnecessary-hashing, r=cjgillot 2023-03-12 06:48:30 +00:00
rustc_index
rustc_infer Rollup merge of #108726 - est31:backticks_matchmaking_tidy, r=Nilstrieb 2023-03-12 08:13:25 +01:00
rustc_interface Auto merge of #108794 - nnethercote:avoid-unnecessary-hashing, r=cjgillot 2023-03-12 06:48:30 +00:00
rustc_lexer
rustc_lint Remove uses of box_syntax in rustc and tools 2023-03-12 13:19:46 +00:00
rustc_lint_defs Rollup merge of #108806 - cjgillot:query-lints, r=davidtwco 2023-03-11 15:43:15 +01:00
rustc_llvm
rustc_log
rustc_macros
rustc_metadata Auto merge of #108820 - cjgillot:ensure-on-disk, r=oli-obk 2023-03-12 14:00:28 +00:00
rustc_middle Auto merge of #108820 - cjgillot:ensure-on-disk, r=oli-obk 2023-03-12 14:00:28 +00:00
rustc_mir_build Auto merge of #108820 - cjgillot:ensure-on-disk, r=oli-obk 2023-03-12 14:00:28 +00:00
rustc_mir_dataflow Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_mir_transform Auto merge of #108471 - clubby789:unbox-the-syntax, r=Nilstrieb,est31 2023-03-13 10:41:50 +00:00
rustc_monomorphize Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_parse Auto merge of #108471 - clubby789:unbox-the-syntax, r=Nilstrieb,est31 2023-03-13 10:41:50 +00:00
rustc_parse_format
rustc_passes Remove box_syntax from AST and use in tools 2023-03-12 13:19:46 +00:00
rustc_plugin_impl Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_privacy Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_query_impl Ensure value is on the on-disk cache before returning. 2023-03-11 22:41:01 +00:00
rustc_query_system Auto merge of #108845 - Zoxc:par-fix-2, r=cjgillot 2023-03-12 17:03:44 +00:00
rustc_resolve Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_serialize
rustc_session Auto merge of #108794 - nnethercote:avoid-unnecessary-hashing, r=cjgillot 2023-03-12 06:48:30 +00:00
rustc_smir
rustc_span Rollup merge of #108797 - thomcc:sourcemap_include_binary_file, r=compiler-errors 2023-03-12 08:13:26 +01:00
rustc_symbol_mangling Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_target
rustc_trait_selection Rollup merge of #109032 - compiler-errors:shorter, r=BoxyUwU 2023-03-12 20:44:52 +01:00
rustc_traits
rustc_transmute
rustc_ty_utils Auto merge of #108682 - est31:simplify_dirs, r=davidtwco 2023-03-12 03:51:21 +00:00
rustc_type_ir Rollup merge of #109047 - tshepang:type, r=lcnr 2023-03-12 20:44:52 +01:00