We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1572c43 commit 058ff72Copy full SHA for 058ff72
src/libcore/ptr/mod.rs
@@ -810,9 +810,7 @@ pub unsafe fn read_unaligned<T>(src: *const T) -> T {
810
#[inline]
811
#[stable(feature = "rust1", since = "1.0.0")]
812
pub unsafe fn write<T>(dst: *mut T, src: T) {
813
- // FIXME: the debug assertion here causes codegen test failures on some architectures.
814
- // See <https://github.com/rust-lang/rust/pull/69208#issuecomment-591326757>.
815
- // debug_assert!(is_aligned_and_not_null(dst), "attempt to write to unaligned or null pointer");
+ debug_assert!(is_aligned_and_not_null(dst), "attempt to write to unaligned or null pointer");
816
intrinsics::move_val_init(&mut *dst, src)
817
}
818
0 commit comments