Add tracking issue

This commit is contained in:
Benoît du Garreau 2020-11-04 11:58:41 +01:00
parent 9a12d727df
commit 795bbfe056
2 changed files with 6 additions and 6 deletions

View File

@ -406,7 +406,7 @@ impl<T> Cell<T> {
/// assert_eq!(five, 5); /// assert_eq!(five, 5);
/// ``` /// ```
#[stable(feature = "move_cell", since = "1.17.0")] #[stable(feature = "move_cell", since = "1.17.0")]
#[rustc_const_unstable(feature = "const_cell_into_inner", issue = "none")] #[rustc_const_unstable(feature = "const_cell_into_inner", issue = "78729")]
pub const fn into_inner(self) -> T { pub const fn into_inner(self) -> T {
self.value.into_inner() self.value.into_inner()
} }
@ -669,7 +669,7 @@ impl<T> RefCell<T> {
/// let five = c.into_inner(); /// let five = c.into_inner();
/// ``` /// ```
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature = "const_cell_into_inner", issue = "none")] #[rustc_const_unstable(feature = "const_cell_into_inner", issue = "78729")]
#[inline] #[inline]
pub const fn into_inner(self) -> T { pub const fn into_inner(self) -> T {
// Since this function takes `self` (the `RefCell`) by value, the // Since this function takes `self` (the `RefCell`) by value, the
@ -1682,7 +1682,7 @@ impl<T> UnsafeCell<T> {
/// ``` /// ```
#[inline] #[inline]
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature = "const_cell_into_inner", issue = "none")] #[rustc_const_unstable(feature = "const_cell_into_inner", issue = "78729")]
pub const fn into_inner(self) -> T { pub const fn into_inner(self) -> T {
self.value self.value
} }

View File

@ -365,7 +365,7 @@ impl AtomicBool {
/// ``` /// ```
#[inline] #[inline]
#[stable(feature = "atomic_access", since = "1.15.0")] #[stable(feature = "atomic_access", since = "1.15.0")]
#[rustc_const_unstable(feature = "const_cell_into_inner", issue = "none")] #[rustc_const_unstable(feature = "const_cell_into_inner", issue = "78729")]
pub const fn into_inner(self) -> bool { pub const fn into_inner(self) -> bool {
self.v.into_inner() != 0 self.v.into_inner() != 0
} }
@ -942,7 +942,7 @@ impl<T> AtomicPtr<T> {
/// ``` /// ```
#[inline] #[inline]
#[stable(feature = "atomic_access", since = "1.15.0")] #[stable(feature = "atomic_access", since = "1.15.0")]
#[rustc_const_unstable(feature = "const_cell_into_inner", issue = "none")] #[rustc_const_unstable(feature = "const_cell_into_inner", issue = "78729")]
pub const fn into_inner(self) -> *mut T { pub const fn into_inner(self) -> *mut T {
self.p.into_inner() self.p.into_inner()
} }
@ -1464,7 +1464,7 @@ assert_eq!(some_var.into_inner(), 5);
```"), ```"),
#[inline] #[inline]
#[$stable_access] #[$stable_access]
#[rustc_const_unstable(feature = "const_cell_into_inner", issue = "none")] #[rustc_const_unstable(feature = "const_cell_into_inner", issue = "78729")]
pub const fn into_inner(self) -> $int_type { pub const fn into_inner(self) -> $int_type {
self.v.into_inner() self.v.into_inner()
} }