Skip to content

Commit 0032f06

Browse files
committed
Add reexport of slice::from{,_mut}_ptr_range to alloc & std
At first I was confused why `std::slice::from_ptr_range` didn't work :D
1 parent e5ae818 commit 0032f06

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

alloc/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
#![feature(ptr_sub_ptr)]
131131
#![feature(receiver_trait)]
132132
#![feature(set_ptr_value)]
133+
#![feature(slice_from_ptr_range)]
133134
#![feature(slice_group_by)]
134135
#![feature(slice_ptr_get)]
135136
#![feature(slice_ptr_len)]

alloc/src/slice.rs

+2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ pub use core::slice::EscapeAscii;
114114
pub use core::slice::SliceIndex;
115115
#[stable(feature = "from_ref", since = "1.28.0")]
116116
pub use core::slice::{from_mut, from_ref};
117+
#[unstable(feature = "slice_from_ptr_range", issue = "89792")]
118+
pub use core::slice::{from_mut_ptr_range, from_ptr_range};
117119
#[stable(feature = "rust1", since = "1.0.0")]
118120
pub use core::slice::{from_raw_parts, from_raw_parts_mut};
119121
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)