rust/compiler
Kevin Reid 13fca73f49 Replace MaybeUninit::uninit_array() with array repeat expression.
This is possible now that inline const blocks are stable; the idea was
even mentioned as an alternative when `uninit_array()` was added:
<https://github.com/rust-lang/rust/pull/65580#issuecomment-544200681>

> if it’s stabilized soon enough maybe it’s not worth having a
> standard library method that will be replaceable with
> `let buffer = [MaybeUninit::<T>::uninit(); $N];`

Const array repetition and inline const blocks are now stable (in the
next release), so that circumstance has come to pass, and we no longer
have reason to want `uninit_array()` other than convenience. Therefore,
let’s evaluate the inconvenience by not using `uninit_array()` in
the standard library, before potentially deleting it entirely.
2024-06-24 10:23:50 -07:00
..
rustc
rustc_abi
rustc_arena
rustc_ast Rework pattern and expression nonterminal kinds. 2024-06-23 15:57:24 +10:00
rustc_ast_ir
rustc_ast_lowering Fix remaining cases 2024-06-21 19:00:18 -04:00
rustc_ast_passes Add hard error and migration lint for unsafe attrs 2024-06-23 19:02:14 -05:00
rustc_ast_pretty StaticForeignItem and StaticItem are the same 2024-06-20 19:51:09 -04:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck Auto merge of #126023 - amandasystems:you-dropped-this-again, r=nikomatsakis 2024-06-24 00:24:51 +00:00
rustc_builtin_macros
rustc_codegen_cranelift cg_clif: Define build opts from FramePointer 2024-06-23 00:36:33 -07:00
rustc_codegen_gcc
rustc_codegen_llvm compiler(nfc): -Cforce-frame-pointers is a FramePointer 2024-06-23 00:36:33 -07:00
rustc_codegen_ssa More GVN for PtrMetadata 2024-06-20 22:16:59 -07:00
rustc_const_eval don't ICE when encountering an extern type field during validation 2024-06-22 17:39:01 +02:00
rustc_data_structures Replace MaybeUninit::uninit_array() with array repeat expression. 2024-06-24 10:23:50 -07:00
rustc_driver
rustc_driver_impl
rustc_error_codes
rustc_error_messages
rustc_errors Special case when a code line only has multiline span starts 2024-06-23 22:00:52 +00:00
rustc_expand Rollup merge of #126177 - carbotaniuman:unsafe_attr_errors, r=jieyouxu 2024-06-24 06:27:12 +02:00
rustc_feature Rollup merge of #126177 - carbotaniuman:unsafe_attr_errors, r=jieyouxu 2024-06-24 06:27:12 +02:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_analysis Rollup merge of #126552 - fee1-dead-contrib:rmfx, r=compiler-errors 2024-06-22 19:33:56 +02:00
rustc_hir_pretty
rustc_hir_typeck Rollup merge of #126455 - surechen:fix_126222, r=estebank 2024-06-24 06:27:13 +02:00
rustc_incremental
rustc_index
rustc_index_macros
rustc_infer Rename a bunch of things 2024-06-21 12:32:05 -04:00
rustc_interface compiler(nfc): -Cforce-frame-pointers is a FramePointer 2024-06-23 00:36:33 -07:00
rustc_lexer
rustc_lint Add hard error and migration lint for unsafe attrs 2024-06-23 19:02:14 -05:00
rustc_lint_defs Add hard error and migration lint for unsafe attrs 2024-06-23 19:02:14 -05:00
rustc_llvm
rustc_log
rustc_macros
rustc_metadata Fix remaining cases 2024-06-21 19:00:18 -04:00
rustc_middle Rollup merge of #126833 - RalfJung:extern-type-field-ice, r=compiler-errors 2024-06-23 22:39:00 +02:00
rustc_mir_build Replace f16 and f128 pattern matching stubs with real implementations 2024-06-23 04:28:42 -05:00
rustc_mir_dataflow
rustc_mir_transform Auto merge of #125853 - tesuji:promote-fail-fast, r=cjgillot 2024-06-21 16:00:14 +00:00
rustc_monomorphize
rustc_next_trait_solver Rename a bunch of things 2024-06-21 12:32:05 -04:00
rustc_parse Rollup merge of #126882 - estebank:multiline-order, r=WaffleLapkin 2024-06-24 15:06:23 +02:00
rustc_parse_format
rustc_passes Add hard error and migration lint for unsafe attrs 2024-06-23 19:02:14 -05:00
rustc_pattern_analysis Replace f16 and f128 pattern matching stubs with real implementations 2024-06-23 04:28:42 -05:00
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve Rollup merge of #125241 - Veykril:tool-rust-analyzer, r=davidtwco 2024-06-24 15:06:21 +02:00
rustc_sanitizers Rename a bunch of things 2024-06-21 12:32:05 -04:00
rustc_serialize
rustc_session compiler: parse the empty frame-pointer 2024-06-23 02:22:55 -07:00
rustc_smir Add method to get FnAbi of function pointer 2024-06-21 14:50:56 +08:00
rustc_span Rollup merge of #125241 - Veykril:tool-rust-analyzer, r=davidtwco 2024-06-24 15:06:21 +02:00
rustc_symbol_mangling
rustc_target Rollup merge of #126849 - workingjubilee:correctly-classify-arm-low-dregs, r=Amanieu 2024-06-24 06:27:16 +02:00
rustc_trait_selection Rename a bunch of things 2024-06-21 12:32:05 -04:00
rustc_traits
rustc_transmute
rustc_ty_utils
rustc_type_ir Rename a bunch of things 2024-06-21 12:32:05 -04:00
rustc_type_ir_macros
stable_mir Add method to get FnAbi of function pointer 2024-06-21 14:50:56 +08:00