10000
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 22c4e8e commit 0418d54Copy full SHA for 0418d54
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