diff options
| author | CoffeeBlend <jonasboettiger@icloud.com> | 2021-01-12 01:39:10 +0100 |
|---|---|---|
| committer | CoffeeBlend <jonasboettiger@icloud.com> | 2021-01-12 01:39:10 +0100 |
| commit | 985071b08f5c03e4f18d43c15f3ea82395588a5e (patch) | |
| tree | fdf609ebf073d1258a1f8048713360b5deb135b4 | |
| parent | 5d65b7e055f469ee5bcc733860c6ebe37649bfa5 (diff) | |
Fix implementation
| -rw-r--r-- | library/core/src/mem/maybe_uninit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/mem/maybe_uninit.rs b/library/core/src/mem/maybe_uninit.rs index b186aa61eb0..fda0553f94c 100644 --- a/library/core/src/mem/maybe_uninit.rs +++ b/library/core/src/mem/maybe_uninit.rs @@ -840,7 +840,7 @@ impl<T> MaybeUninit<T> { // And thus the conversion is safe unsafe { intrinsics::assert_inhabited::<T>(); - (&array as *const _ as *const T).read() + (&array as *const _ as *const [T; N]).read() } } |
