We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3a0cc81 + fb26ba8 commit 72c6268Copy full SHA for 72c6268
library/core/src/ptr/non_null.rs
@@ -251,7 +251,7 @@ impl<T: ?Sized> NonNull<T> {
251
#[unstable(feature = "ptr_metadata", issue = "81513")]
252
#[inline]
253
pub const fn from_raw_parts(
254
- data_pointer: NonNull<()>,
+ data_pointer: NonNull<impl super::Thin>,
255
metadata: <T as super::Pointee>::Metadata,
256
) -> NonNull<T> {
257
// SAFETY: The result of `ptr::from::raw_parts_mut` is non-null because `data_pointer` is.
0 commit comments