We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bec5d37 commit d1d0de9Copy full SHA for d1d0de9
src/libcore/ptr/mod.rs
@@ -801,7 +801,9 @@ pub unsafe fn read_unaligned<T>(src: *const T) -> T {
801
#[inline]
802
#[stable(feature = "rust1", since = "1.0.0")]
803
pub unsafe fn write<T>(dst: *mut T, src: T) {
804
- debug_assert!(is_aligned_and_not_null(dst), "attempt to write to unaligned or null pointer");
+ // FIXME: the debug assertion here causes codegen test failures on some architectures.
805
+ // See <https://github.com/rust-lang/rust/pull/69208#issuecomment-591326757>.
806
+ // debug_assert!(is_aligned_and_not_null(dst), "attempt to write to unaligned or null pointer");
807
intrinsics::move_val_init(&mut *dst, src)
808
}
809
0 commit comments