library: 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.
This commit is contained in:
Thalia Archibald 2025-03-04 20:28:38 -08:00
parent 08db600e8e
commit 988eb19970
118 changed files with 392 additions and 486 deletions

View file

@ -39,9 +39,9 @@ pub type _Unwind_Exception_Class = u64;
pub type _Unwind_Word = *const u8;
pub type _Unwind_Ptr = *const u8;
pub const unwinder_private_data_size: usize = core::mem::size_of::<UnwindException>()
- core::mem::size_of::<_Unwind_Exception_Class>()
- core::mem::size_of::<_Unwind_Exception_Cleanup_Fn>();
pub const unwinder_private_data_size: usize = size_of::<UnwindException>()
- size_of::<_Unwind_Exception_Class>()
- size_of::<_Unwind_Exception_Cleanup_Fn>();
pub type _Unwind_Exception_Cleanup_Fn =
Option<extern "C" fn(unwind_code: _Unwind_Reason_Code, exception: *mut _Unwind_Exception)>;