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``
|
||
|---|---|---|
| .. | ||
| mir | ||
| abi.rs | ||
| compiler_interface.rs | ||
| crate_def.rs | ||
| error.rs | ||
| lib.rs | ||
| mir.rs | ||
| target.rs | ||
| ty.rs | ||
| visitor.rs | ||