diff options
| author | ltdk <usr@ltdk.xyz> | 2024-02-15 10:13:47 -0500 |
|---|---|---|
| committer | ltdk <usr@ltdk.xyz> | 2024-02-15 10:18:33 -0500 |
| commit | 290cbdf50ed7aa856a6794178500c7bd76fc7ec9 (patch) | |
| tree | 80509036ac15179a0ee2400f19ad2e56bd309c51 /library/alloc/src | |
| parent | fa9f77ff35b4b63ed0cef9a9642c8f881b33f14f (diff) | |
| download | rust-290cbdf50ed7aa856a6794178500c7bd76fc7ec9.tar.gz rust-290cbdf50ed7aa856a6794178500c7bd76fc7ec9.zip | |
Add slice::try_range
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/slice.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/slice.rs b/library/alloc/src/slice.rs index f4e392760c8..21d5dce04a0 100644 --- a/library/alloc/src/slice.rs +++ b/library/alloc/src/slice.rs @@ -33,8 +33,6 @@ use crate::vec::Vec; #[cfg(test)] mod tests; -#[unstable(feature = "slice_range", issue = "76393")] -pub use core::slice::range; #[unstable(feature = "array_chunks", issue = "74985")] pub use core::slice::ArrayChunks; #[unstable(feature = "array_chunks", issue = "74985")] @@ -51,6 +49,8 @@ pub use core::slice::{from_mut, from_ref}; pub use core::slice::{from_mut_ptr_range, from_ptr_range}; #[stable(feature = "rust1", since = "1.0.0")] pub use core::slice::{from_raw_parts, from_raw_parts_mut}; +#[unstable(feature = "slice_range", issue = "76393")] +pub use core::slice::{range, try_range}; #[stable(feature = "slice_group_by", since = "1.77.0")] pub use core::slice::{ChunkBy, ChunkByMut}; #[stable(feature = "rust1", since = "1.0.0")] |
