Mark LazyCell::into_inner unstably const · qinheping/verify-rust-std@e788410 (original) (raw)

`@@ -79,7 +79,7 @@ impl<T, F: FnOnce() -> T> LazyCell<T, F> {

`

79

79

`/// assert_eq!(LazyCell::into_inner(lazy).ok(), Some("HELLO, WORLD!".to_string()));

`

80

80

```` /// ```

````

81

81

`#[unstable(feature = "lazy_cell_into_inner", issue = "125623")]

`

82

``

`-

pub fn into_inner(this: Self) -> Result<T, F> {

`

``

82

`+

pub const fn into_inner(this: Self) -> Result<T, F> {

`

83

83

`match this.state.into_inner() {

`

84

84

`State::Init(data) => Ok(data),

`

85

85

`State::Uninit(f) => Err(f),

`

`@@ -306,6 +306,6 @@ impl<T: fmt::Debug, F> fmt::Debug for LazyCell<T, F> {

`

306

306

``

307

307

`#[cold]

`

308

308

`#[inline(never)]

`

309

``

`-

fn panic_poisoned() -> ! {

`

``

309

`+

const fn panic_poisoned() -> ! {

`

310

310

`panic!("LazyCell instance has previously been poisoned")

`

311

311

`}

`