diff options
| author | ClearLove <98693523+DiuDiu777@users.noreply.github.com> | 2025-03-13 11:34:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-13 11:34:18 +0800 |
| commit | 2f824ea429cf09a9816baa3d4b55c551896838fe (patch) | |
| tree | 4d1fde3e87d56bad97cdd86927a9daab3bdd0459 | |
| parent | 6a0199021548bc42a5aa1d41cd69499afaba448a (diff) | |
| download | rust-2f824ea429cf09a9816baa3d4b55c551896838fe.tar.gz rust-2f824ea429cf09a9816baa3d4b55c551896838fe.zip | |
Update library/core/src/intrinsics/mod.rs
Co-authored-by: Thom Chiovoloni <thom@shift.click>
| -rw-r--r-- | library/core/src/intrinsics/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/intrinsics/mod.rs b/library/core/src/intrinsics/mod.rs index be2cfd3f3ed..ce8c8c8946e 100644 --- a/library/core/src/intrinsics/mod.rs +++ b/library/core/src/intrinsics/mod.rs @@ -1635,7 +1635,7 @@ pub fn ptr_mask<T>(_ptr: *const T, _mask: usize) -> *const T; /// /// The safety requirements are consistent with [`copy_nonoverlapping`] /// while the read and write behaviors are volatile, -/// 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. /// /// [`copy_nonoverlapping`]: ptr::copy_nonoverlapping #[rustc_intrinsic] |
