We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 327a0d7 + 0af64b6 commit 300a266Copy full SHA for 300a266
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