We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71b93d0 commit 4b0a0e3Copy full SHA for 4b0a0e3
core/src/intrinsics/mod.rs
@@ -1635,7 +1635,7 @@ pub fn ptr_mask<T>(_ptr: *const T, _mask: usize) -> *const T;
1635
///
1636
/// The safety requirements are consistent with [`copy_nonoverlapping`]
1637
/// while the read and write behaviors are volatile,
1638
-/// which means it will not be optimized out unless size is equal to zero.
+/// which means it will not be optimized out unless `_count` or `size_of::<T>()` is equal to zero.
1639
1640
/// [`copy_nonoverlapping`]: ptr::copy_nonoverlapping
1641
#[rustc_intrinsic]
0 commit comments