about summary refs log tree commit diff
path: root/library/core/src/mem
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-03-30 11:44:36 +0000
committerbors <bors@rust-lang.org>2021-03-30 11:44:36 +0000
commit16156fb2787f745e57504197bd7fe38b69c6cbea (patch)
tree8629975b2f2fb968c84444d7090f746f0a7a98e2 /library/core/src/mem
parent689e8470ffa7aeca17cfee428704a4d6c4148c11 (diff)
parent5b467787b625d83d5cf210e70d56487e53ce4255 (diff)
downloadrust-16156fb2787f745e57504197bd7fe38b69c6cbea.tar.gz
rust-16156fb2787f745e57504197bd7fe38b69c6cbea.zip
Auto merge of #83674 - Dylan-DPC:rollup-bcuc1hl, r=Dylan-DPC
Rollup of 7 pull requests

Successful merges:

 - #83568 (update comment at MaybeUninit::uninit_array)
 - #83571 (Constantify some slice methods)
 - #83579 (Improve pointer arithmetic docs)
 - #83645 (Wrap non-pre code blocks)
 - #83656 (Add a regression test for issue-82865)
 - #83662 (Update books)
 - #83667 (Suggest box/pin/arc ing receiver on method calls)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'library/core/src/mem')
-rw-r--r--library/core/src/mem/maybe_uninit.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/mem/maybe_uninit.rs b/library/core/src/mem/maybe_uninit.rs
index cb072931232..337f0e847bb 100644
--- a/library/core/src/mem/maybe_uninit.rs
+++ b/library/core/src/mem/maybe_uninit.rs
@@ -319,9 +319,9 @@ impl<T> MaybeUninit<T> {
     /// Create a new array of `MaybeUninit<T>` items, in an uninitialized state.
     ///
     /// Note: in a future Rust version this method may become unnecessary
-    /// when array literal syntax allows
-    /// [repeating const expressions](https://github.com/rust-lang/rust/issues/49147).
-    /// The example below could then use `let mut buf = [MaybeUninit::<u8>::uninit(); 32];`.
+    /// when Rust allows
+    /// [inline const expressions](https://github.com/rust-lang/rust/issues/76001).
+    /// The example below could then use `let mut buf = [const { MaybeUninit::<u8>::uninit() }; 32];`.
     ///
     /// # Examples
     ///