rust/compiler
Thalia Archibald 38fad984c6 compiler: Use size_of from the prelude instead of imported
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the
prelude instead of importing or qualifying them.

These functions were added to all preludes in Rust 1.80.
2025-03-07 13:37:04 -08:00
..
rustc Fix overcapturing, unsafe extern blocks, and new unsafe ops 2025-02-22 00:01:48 +00:00
rustc_abi rename BackendRepr::Vector → SimdVector 2025-02-28 17:17:45 +01:00
rustc_arena compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_ast Auto merge of #135186 - camelid:const-path-multi, r=BoxyUwU 2025-03-04 22:37:37 +00:00
rustc_ast_ir Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_ast_lowering mgca: Lower all const paths as ConstArgKind::Path 2025-03-04 10:11:13 -05:00
rustc_ast_passes Implment #[cfg] and #[cfg_attr] in where clauses 2025-03-01 22:02:46 +08:00
rustc_ast_pretty Auto merge of #137959 - matthiaskrgr:rollup-62vjvwr, r=matthiaskrgr 2025-03-04 02:27:56 +00:00
rustc_attr_data_structures Spruce up AttributeKind docs 2025-02-26 22:21:36 +00:00
rustc_attr_parsing Remove NtPath. 2025-02-28 08:42:14 +11:00
rustc_baked_icu_data Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_borrowck Use mk_ty_from_kind a bit less, clean up lifetime handling in borrowck 2025-02-28 01:27:08 +00:00
rustc_builtin_macros mgca: Lower all const paths as ConstArgKind::Path 2025-03-04 10:11:13 -05:00
rustc_codegen_cranelift Rollup merge of #137634 - tgross35:update-builtins, r=tgross35 2025-03-04 14:50:40 -08:00
rustc_codegen_gcc compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_codegen_llvm Auto merge of #137959 - matthiaskrgr:rollup-62vjvwr, r=matthiaskrgr 2025-03-04 02:27:56 +00:00
rustc_codegen_ssa compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_const_eval Rollup merge of #137804 - RalfJung:backend-repr-simd-vector, r=workingjubilee 2025-03-01 16:03:10 +01:00
rustc_data_structures compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_driver Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_driver_impl Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_error_codes Update E0133 docs for 2024 edition 2025-02-27 08:33:44 -08:00
rustc_error_messages Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_errors compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_expand Auto merge of #137959 - matthiaskrgr:rollup-62vjvwr, r=matthiaskrgr 2025-03-04 02:27:56 +00:00
rustc_feature Auto merge of #135186 - camelid:const-path-multi, r=BoxyUwU 2025-03-04 22:37:37 +00:00
rustc_fluent_macro Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_fs_util Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_graphviz Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_hashes Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_hir compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_hir_analysis mgca: Lower all const paths as ConstArgKind::Path 2025-03-04 10:11:13 -05:00
rustc_hir_pretty Rollup merge of #132388 - frank-king:feature/where-cfg, r=petrochenkov 2025-03-03 10:40:56 +01:00
rustc_hir_typeck mgca: Lower all const paths as ConstArgKind::Path 2025-03-04 10:11:13 -05:00
rustc_incremental compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_index compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_index_macros Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_infer Use Binder<Vec<T>> instead of Vec<Binder<T>> in new solver 2025-02-26 17:32:26 +00:00
rustc_interface Remove some unnecessary aliases from rustc_data_structures::sync 2025-03-03 20:20:24 +11:00
rustc_lexer Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
rustc_lint Rollup merge of #136424 - 11happy:overflow.hex.fix, r=fmease 2025-02-28 21:41:58 +08:00
rustc_lint_defs compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_llvm Auto merge of #133250 - DianQK:embed-bitcode-pgo, r=nikic 2025-03-01 08:22:18 +00:00
rustc_log Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_macros pretty print hir attributes 2025-02-24 14:31:19 +01:00
rustc_metadata Auto merge of #135695 - Noratrieb:elf-raw-dylib, r=bjorn3 2025-03-04 15:39:44 +00:00
rustc_middle compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_mir_build Rollup merge of #137686 - nbdd0121:asm_const, r=compiler-errors 2025-03-01 05:49:52 +01:00
rustc_mir_dataflow Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
rustc_mir_transform rename BackendRepr::Vector → SimdVector 2025-02-28 17:17:45 +01:00
rustc_monomorphize Remove some unnecessary aliases from rustc_data_structures::sync 2025-03-03 20:20:24 +11:00
rustc_next_trait_solver Rollup merge of #137776 - nnethercote:rustc_transmute-cleanups, r=jswrenn 2025-03-01 11:34:01 +01:00
rustc_parse compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_parse_format Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
rustc_passes compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_pattern_analysis Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
rustc_privacy Introduce new-style attribute parsers for several attributes 2025-02-24 14:31:17 +01:00
rustc_query_impl Introduce new parsing infrastructure and types for parsed attributes 2025-02-24 14:26:06 +01:00
rustc_query_system compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_resolve compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_sanitizers Introduce new-style attribute parsers for several attributes 2025-02-24 14:31:17 +01:00
rustc_serialize compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_session compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_smir rename BackendRepr::Vector → SimdVector 2025-02-28 17:17:45 +01:00
rustc_span Auto merge of #135186 - camelid:const-path-multi, r=BoxyUwU 2025-03-04 22:37:37 +00:00
rustc_symbol_mangling Rename a bit 2025-03-03 01:34:09 +00:00
rustc_target Auto merge of #135695 - Noratrieb:elf-raw-dylib, r=bjorn3 2025-03-04 15:39:44 +00:00
rustc_trait_selection compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
rustc_traits Rollup merge of #137333 - compiler-errors:edition-2024-fresh, r=Nadrieril 2025-02-22 11:36:43 +01:00
rustc_transmute Remove allow(dead_code) attributes. 2025-02-28 17:31:31 +11:00
rustc_ty_utils Remove layouting dead code for non-array SIMD types. 2025-03-02 12:50:14 +01:00
rustc_type_ir Rollup merge of #137689 - compiler-errors:coroutine, r=lcnr 2025-03-01 05:49:53 +01:00
rustc_type_ir_macros Upgrade the compiler to edition 2024 2025-02-22 00:01:48 +00:00
stable_mir compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00