about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorClément Renault <clement@meilisearch.com>2020-12-10 10:16:29 +0100
committerClément Renault <clement@meilisearch.com>2020-12-10 10:16:29 +0100
commita891f6edfeb4d7b061a215ba160fca0e4804ffd2 (patch)
tree268ac9128fb52fcce238b6f87261252d147beace /library/alloc/src
parente413d89aa706060ddc347e1e06d551ec86d3f471 (diff)
downloadrust-a891f6edfeb4d7b061a215ba160fca0e4804ffd2.tar.gz
rust-a891f6edfeb4d7b061a215ba160fca0e4804ffd2.zip
Introduce the GroupBy and GroupByMut Iterators
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/lib.rs1
-rw-r--r--library/alloc/src/slice.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs
index 3ac34c9ae28..34102d9c403 100644
--- a/library/alloc/src/lib.rs
+++ b/library/alloc/src/lib.rs
@@ -140,6 +140,7 @@
 #![feature(try_trait)]
 #![feature(type_alias_impl_trait)]
 #![feature(associated_type_bounds)]
+#![feature(slice_group_by)]
 // Allow testing this library
 
 #[cfg(test)]
diff --git a/library/alloc/src/slice.rs b/library/alloc/src/slice.rs
index 064700fc72c..bfa317ffd73 100644
--- a/library/alloc/src/slice.rs
+++ b/library/alloc/src/slice.rs
@@ -118,6 +118,8 @@ pub use core::slice::{RChunks, RChunksExact, RChunksExactMut, RChunksMut};
 pub use core::slice::{RSplit, RSplitMut};
 #[stable(feature = "rust1", since = "1.0.0")]
 pub use core::slice::{RSplitN, RSplitNMut, SplitN, SplitNMut};
+#[unstable(feature = "slice_group_by", issue = "0")]
+pub use core::slice::{GroupBy, GroupByMut};
 
 ////////////////////////////////////////////////////////////////////////////////
 // Basic slice extension methods