Auto merge of #130540 - veera-sivarajan:fix-87525, r=estebank · qinheping/verify-rust-std@686d25d (original) (raw)

Original file line number Diff line number Diff line change
@@ -1909,6 +1909,7 @@ pub unsafe fn write_volatile(dst: *mut T, src: T) {
1909 1909 /// than trying to adapt this to accommodate that change.
1910 1910 ///
1911 1911 /// Any questions go to @nagisa.
1912 +#[cfg_attr(not(bootstrap), allow(ptr_to_integer_transmute_in_consts))]
1912 1913 #[lang = "align_offset"]
1913 1914 pub(crate) const unsafe fn align_offset<T: Sized>(p: *const T, a: usize) -> usize {
1914 1915 // FIXME(#75598): Direct use of these intrinsics improves codegen significantly at opt-level <=