about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/aligned.rs
AgeCommit message (Collapse)AuthorLines
2025-07-01Update `cfg(bootstrap)`Josh Stone-2/+1
2025-06-16library/compiler: add `PointeeSized` boundsDavid Wood-1/+3
As core uses an extern type (`ptr::VTable`), the default `?Sized` to `MetaSized` migration isn't sufficient, and some code that previously accepted `VTable` needs relaxed to continue to accept extern types. Similarly, the compiler uses many extern types in `rustc_codegen_llvm` and in the `rustc_middle::ty::List` implementation (`OpaqueListContents`) some bounds must be relaxed to continue to accept these types. Unfortunately, due to the current inability to relax `Deref::Target`, some of the bounds in the standard library are forced to be stricter than they ideally would be.
2025-03-07compiler: Use size_of from the prelude instead of importedThalia Archibald-5/+3
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.
2023-04-14fix broken intradoclinksMaybe Waffle-1/+3
2023-04-14Use `ptr::Alignment` for extra coolness pointsMaybe Waffle-5/+5
2023-04-12Lift `Pointer`'s requirement for the pointer to be thinMaybe Waffle-0/+31
fat pointers rule!