rust/compiler/stable_mir/src
Matthias Krüger c6662879b2
Rollup merge of #138040 - thaliaarchi:use-prelude-size-of.compiler, r=compiler-errors
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. Apply this change across the compiler.

These functions were added to all preludes in Rust 1.80.

r? ``@compiler-errors``
2025-03-09 10:34:49 +01:00
..
mir compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
abi.rs Remove BackendRepr::Uninhabited, replaced with an uninhabited: bool field in LayoutData. 2025-02-20 13:27:32 -06:00
compiler_interface.rs change smir attributes getters to only support tool attributes 2025-02-24 14:31:19 +01:00
crate_def.rs Remove duplication in name/trimmed_anem docs 2025-03-02 13:02:20 +03:00
error.rs Implement missing ABI structures in StableMIR 2024-03-01 11:02:05 -08:00
lib.rs Make CrateItem::body() function return an option 2025-03-04 17:46:40 -08:00
mir.rs Add support to global allocation to stable-mir 2023-11-21 19:16:53 -08:00
target.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
ty.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
visitor.rs Fix bugs due to unhandled ControlFlow 2025-02-22 23:56:14 +00:00