Bump stage0 to 1.96 beta

This commit is contained in:
Mark Rousskov
2026-04-14 18:05:13 -04:00
parent f0827c67ca
commit a64c420c70
9 changed files with 572 additions and 591 deletions
@@ -1,8 +1,5 @@
use std::marker::PointeeSized;
#[cfg(not(bootstrap))]
use std::mem::Alignment;
#[cfg(bootstrap)]
use std::ptr::Alignment;
/// Returns the ABI-required minimum alignment of a type in bytes.
///
@@ -56,9 +56,6 @@ pub unsafe trait Tag: Copy {
/// (this is based on `T`'s alignment).
pub const fn bits_for<T: ?Sized + Aligned>() -> u32 {
let alignment = crate::aligned::align_of::<T>();
#[cfg(bootstrap)]
let alignment = alignment.as_nonzero();
#[cfg(not(bootstrap))]
let alignment = alignment.as_nonzero_usize();
alignment.trailing_zeros()
}