Skip to content

Commit 627e19b

Browse files
jannauhoshinolina
authored andcommitted
rust: lib: Rust 1.77 compat fixes
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 0fde2b1 commit 627e19b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rust/alloc/slice.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ pub use core::slice::{Chunks, Windows};
5959
pub use core::slice::{ChunksExact, ChunksExactMut};
6060
#[stable(feature = "rust1", since = "1.0.0")]
6161
pub use core::slice::{ChunksMut, Split, SplitMut};
62+
#[cfg(version("1.77"))]
63+
#[stable(feature = "slice_chunk_by", since = "1.77.0")]
64+
pub use core::slice::{ChunkBy, ChunkByMut};
65+
#[cfg(not(version("1.77")))]
6266
#[unstable(feature = "slice_group_by", issue = "80552")]
6367
pub use core::slice::{GroupBy, GroupByMut};
6468
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)