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 831d2ed commit 16f7536Copy full SHA for 16f7536
library/core/src/intrinsics.rs
@@ -2425,7 +2425,8 @@ pub(crate) const unsafe fn assert_validity_of<T>(_: *const T) -> bool {
2425
}
2426
2427
#[cfg(not(bootstrap))]
2428
-/// Asserts that the value at `value` is valid at type T.
+/// Asserts that the value at `value` is a valid T.
2429
+///
2430
/// Best effort, and is UB if the value is invalid.
2431
pub(crate) unsafe fn assert_validity_of<T>(value: *const T) -> bool {
2432
// We have to do this, since we call assert_validity_of inside MaybeUninit::assume_init
0 commit comments