@@ -1763,8 +1763,6 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
17631763 /// Due to the aliasing guarantee, the following code is legal:
17641764 ///
17651765 /// ```rust
1766- /// #![feature(box_as_ptr)]
1767- ///
17681766 /// unsafe {
17691767 /// let mut b = Box::new(0);
17701768 /// let ptr1 = Box::as_mut_ptr(&mut b);
@@ -1778,7 +1776,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
17781776 ///
17791777 /// [`as_mut_ptr`]: Self::as_mut_ptr
17801778 /// [`as_ptr`]: Self::as_ptr
1781- #[ unstable ( feature = "box_as_ptr" , issue = "129090 " ) ]
1779+ #[ stable ( feature = "box_as_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
17821780 #[ rustc_never_returns_null_ptr]
17831781 #[ rustc_as_ptr]
17841782 #[ inline]
@@ -1809,8 +1807,6 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
18091807 /// Due to the aliasing guarantee, the following code is legal:
18101808 ///
18111809 /// ```rust
1812- /// #![feature(box_as_ptr)]
1813- ///
18141810 /// unsafe {
18151811 /// let mut v = Box::new(0);
18161812 /// let ptr1 = Box::as_ptr(&v);
@@ -1827,7 +1823,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
18271823 ///
18281824 /// [`as_mut_ptr`]: Self::as_mut_ptr
18291825 /// [`as_ptr`]: Self::as_ptr
1830- #[ unstable ( feature = "box_as_ptr" , issue = "129090 " ) ]
1826+ #[ stable ( feature = "box_as_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
18311827 #[ rustc_never_returns_null_ptr]
18321828 #[ rustc_as_ptr]
18331829 #[ inline]
0 commit comments