rust/compiler
bors bdc15928c8 Auto merge of #115367 - frank-king:feature/unnamed-fields-hir, r=davidtwco
Lowering unnamed fields and anonymous adt

This implements #49804.

Goals:
- [x] lowering anonymous ADTs from AST to HIR
- [x] generating definitions of anonymous ADTs
- [x] uniqueness check of the unnamed fields
- [x] field projection of anonymous ADTs
- [x] `#[repr(C)]` check of the anonymous ADTs

Non-Goals (will be in the next PRs)
- capturing generic params for the anonymous ADTs from the parent ADT
- pattern matching of anonymous ADTs
- structural expressions of anonymous ADTs
- rustdoc support of anonymous ADTs
2024-02-12 14:51:15 +00:00
..
rustc
rustc_abi
rustc_arena
rustc_ast Add #[derive(Clone, Copy)] to anonymous adts 2024-02-12 12:47:32 +08:00
rustc_ast_lowering Lowering field access for anonymous adts 2024-02-12 12:47:30 +08:00
rustc_ast_passes check uniqueness of nested fields 2024-02-12 12:47:29 +08:00
rustc_ast_pretty Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck hir: Remove hir::Map::{opt_parent_id,parent_id,get_parent,find_parent} 2024-02-10 12:24:46 +03:00
rustc_builtin_macros Add #[derive(Clone, Copy)] to anonymous adts 2024-02-12 12:47:32 +08:00
rustc_codegen_cranelift
rustc_codegen_gcc
rustc_codegen_llvm Remove unnecessary #![feature(min_specialization)] 2024-02-10 12:26:14 +11:00
rustc_codegen_ssa Rollup merge of #120865 - saethlin:missing-o-files, r=nnethercote 2024-02-10 13:12:31 +01:00
rustc_const_eval fix cycle error when a static and a promoted are mutually recursive 2024-02-12 09:48:14 +01:00
rustc_data_structures Rollup merge of #120846 - petrochenkov:jobs, r=oli-obk 2024-02-10 00:58:38 +01:00
rustc_driver
rustc_driver_impl
rustc_error_codes unstably allow constants to refer to statics and read from immutable statics 2024-02-10 16:12:55 +01:00
rustc_error_messages
rustc_errors Rollup merge of #120272 - long-long-float:suppress-suggestions-in-derive-macro, r=oli-obk 2024-02-11 01:37:54 +01:00
rustc_expand
rustc_feature unstably allow constants to refer to statics and read from immutable statics 2024-02-10 16:12:55 +01:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_hir_analysis Auto merge of #115367 - frank-king:feature/unnamed-fields-hir, r=davidtwco 2024-02-12 14:51:15 +00:00
rustc_hir_pretty Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_hir_typeck Lowering field access for anonymous adts 2024-02-12 12:47:30 +08:00
rustc_incremental
rustc_index
rustc_index_macros
rustc_infer Rollup merge of #120872 - petrochenkov:opthirpar, r=cjgillot 2024-02-11 23:19:08 +01:00
rustc_interface
rustc_lexer
rustc_lint Rollup merge of #120872 - petrochenkov:opthirpar, r=cjgillot 2024-02-11 23:19:08 +01:00
rustc_lint_defs Remove unnecessary #![feature(min_specialization)] 2024-02-10 12:26:14 +11:00
rustc_llvm
rustc_log
rustc_macros
rustc_metadata Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_middle Lowering field access for anonymous adts 2024-02-12 12:47:30 +08:00
rustc_mir_build Lowering field access for anonymous adts 2024-02-12 12:47:30 +08:00
rustc_mir_dataflow Remove unnecessary min_specialization after bootstrap 2024-02-10 18:15:11 +11:00
rustc_mir_transform Auto merge of #120619 - compiler-errors:param, r=lcnr 2024-02-11 22:13:52 +00:00
rustc_monomorphize Rollup merge of #120773 - Enselic:copy-vs-move, r=oli-obk 2024-02-11 01:37:55 +01:00
rustc_next_trait_solver
rustc_parse Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_parse_format
rustc_passes Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_pattern_analysis
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve Improve some codes according to the reviews 2024-02-12 12:47:32 +08:00
rustc_serialize
rustc_session
rustc_smir
rustc_span Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_symbol_mangling Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_target Remove unnecessary min_specialization after bootstrap 2024-02-10 18:15:11 +11:00
rustc_trait_selection Improve some codes according to the reviews 2024-02-12 12:47:32 +08:00
rustc_traits
rustc_transmute
rustc_ty_utils Lower anonymous structs or unions to HIR 2024-02-12 12:47:23 +08:00
rustc_type_ir
stable_mir