diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-05-18 23:14:55 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-07-30 10:50:35 +0200 |
| commit | 95fa63e63f21ba3270870920d67836016b4c9711 (patch) | |
| tree | a545b268982c1d33a01e25e2ea8ff7ff65193892 | |
| parent | d27007fd6d41a8e9f16228d036c1fedaf0449efd (diff) | |
| download | rust-95fa63e63f21ba3270870920d67836016b4c9711.tar.gz rust-95fa63e63f21ba3270870920d67836016b4c9711.zip | |
liballoc export ArrayChunks
| -rw-r--r-- | library/alloc/src/lib.rs | 1 | ||||
| -rw-r--r-- | library/alloc/src/slice.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs index 90e2d2531c5..fe91cceed69 100644 --- a/library/alloc/src/lib.rs +++ b/library/alloc/src/lib.rs @@ -76,6 +76,7 @@ #![cfg_attr(not(test), feature(generator_trait))] #![cfg_attr(test, feature(test))] #![feature(allocator_api)] +#![feature(array_chunks)] #![feature(allow_internal_unstable)] #![feature(arbitrary_self_types)] #![feature(box_patterns)] diff --git a/library/alloc/src/slice.rs b/library/alloc/src/slice.rs index 3d51115fe01..0bb64d6bb6f 100644 --- a/library/alloc/src/slice.rs +++ b/library/alloc/src/slice.rs @@ -95,6 +95,8 @@ use crate::borrow::ToOwned; use crate::boxed::Box; use crate::vec::Vec; +#[unstable(feature = "array_chunks", issue = "none")] +pub use core::slice::ArrayChunks; #[stable(feature = "slice_get_slice", since = "1.28.0")] pub use core::slice::SliceIndex; #[stable(feature = "from_ref", since = "1.28.0")] |
