File tree 2 files changed +2
-5
lines changed
test/run-pass/rfcs/rfc-1789-as-cell
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,6 @@ impl<T: ?Sized> Cell<T> {
494
494
/// # Examples
495
495
///
496
496
/// ```
497
- /// #![feature(as_cell)]
498
497
/// use std::cell::Cell;
499
498
///
500
499
/// let slice: &mut [i32] = &mut [1, 2, 3];
@@ -504,7 +503,7 @@ impl<T: ?Sized> Cell<T> {
504
503
/// assert_eq!(slice_cell.len(), 3);
505
504
/// ```
506
505
#[ inline]
507
- #[ unstable ( feature = "as_cell" , issue= "43038 ") ]
506
+ #[ stable ( feature = "as_cell" , since = "1.37.0 ") ]
508
507
pub fn from_mut ( t : & mut T ) -> & Cell < T > {
509
508
unsafe {
510
509
& * ( t as * mut T as * const Cell < T > )
@@ -541,7 +540,6 @@ impl<T> Cell<[T]> {
541
540
/// # Examples
542
541
///
543
542
/// ```
544
- /// #![feature(as_cell)]
545
543
/// use std::cell::Cell;
546
544
///
547
545
/// let slice: &mut [i32] = &mut [1, 2, 3];
@@ -550,7 +548,7 @@ impl<T> Cell<[T]> {
550
548
///
551
549
/// assert_eq!(slice_cell.len(), 3);
552
550
/// ```
553
- #[ unstable ( feature = "as_cell" , issue= "43038 ") ]
551
+ #[ stable ( feature = "as_cell" , since = "1.37.0 ") ]
554
552
pub fn as_slice_of_cells ( & self ) -> & [ Cell < T > ] {
555
553
unsafe {
556
554
& * ( self as * const Cell < [ T ] > as * const [ Cell < T > ] )
Original file line number Diff line number Diff line change 1
1
// run-pass
2
- #![ feature( as_cell) ]
3
2
4
3
use std:: cell:: Cell ;
5
4
You can’t perform that action at this time.
0 commit comments