We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6520909 commit 759bd0bCopy full SHA for 759bd0b
core/src/ptr/mod.rs
@@ -1916,6 +1916,7 @@ pub unsafe fn write_volatile<T>(dst: *mut T, src: T) {
1916
/// than trying to adapt this to accommodate that change.
1917
///
1918
/// Any questions go to @nagisa.
1919
+#[cfg_attr(not(bootstrap), allow(ptr_to_integer_transmute_in_consts))]
1920
#[lang = "align_offset"]
1921
pub(crate) const unsafe fn align_offset<T: Sized>(p: *const T, a: usize) -> usize {
1922
// FIXME(#75598): Direct use of these intrinsics improves codegen significantly at opt-level <=
0 commit comments