rust/compiler/rustc_middle/src/mir/interpret
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
..
allocation Rollup merge of #138040 - thaliaarchi:use-prelude-size-of.compiler, r=compiler-errors 2025-03-09 10:34:49 +01:00
allocation.rs Rollup merge of #137920 - RalfJung:provenance-map-emptiness, r=oli-obk 2025-03-06 12:22:27 -05:00
error.rs Teach structured errors to display short Ty 2025-02-25 16:56:03 +00:00
mod.rs compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
pointer.rs extend Miri to correctly pass mutable pointers through FFI 2024-12-05 22:41:07 +01:00
queries.rs Rename tcx.ensure() to tcx.ensure_ok() 2025-02-01 12:38:54 +11:00
value.rs compiler: Directly use rustc_abi in metadata and middle 2024-11-03 13:38:47 -08:00