about summary refs log tree commit diff
path: root/library/core/src/array
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-01-08 21:41:48 +0000
committerbors <bors@rust-lang.org>2022-01-08 21:41:48 +0000
commit23ce5fc4655ed546f74a85fc8836e95bec0c64fd (patch)
treede1cb5360f9fe14a7f7cedb87998da56e9268981 /library/core/src/array
parenta7e2e33960e95d2eb1a2a2aeec169dba5f73de05 (diff)
parent3ae0dabddbec41422549d2f0f4512c3d3415d0af (diff)
downloadrust-23ce5fc4655ed546f74a85fc8836e95bec0c64fd.tar.gz
rust-23ce5fc4655ed546f74a85fc8836e95bec0c64fd.zip
Auto merge of #92068 - fee1-dead:libcore2021, r=m-ou-se
Switch all libraries to the 2021 edition

The fix for https://github.com/rust-lang/rust/issues/88638#issuecomment-996620107 is to simply add const-stability for these functions.

r? `@m-ou-se`

Closes #88638.
Diffstat (limited to 'library/core/src/array')
-rw-r--r--library/core/src/array/mod.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs
index 37292bf8e26..121aa634deb 100644
--- a/library/core/src/array/mod.rs
+++ b/library/core/src/array/mod.rs
@@ -66,8 +66,6 @@ where
 ///
 /// ```rust
 /// #![feature(array_from_fn)]
-/// # // Apparently these doc tests are still on edition2018
-/// # use std::convert::TryInto;
 ///
 /// let array: Result<[u8; 5], _> = std::array::try_from_fn(|i| i.try_into());
 /// assert_eq!(array, Ok([0, 1, 2, 3, 4]));