cannot move out of dereference of `bumpalo::boxed::Box<'_, AtomicI32>`
move occurs because value has type `AtomicI32`, which does not implement the `Copy` trait`
There's currently unstable associated function std::boxed::Box::into_inner, that allows us to do the same thing. It follows naming and some other conventions, and can be implemented easily. I propose to implement that.
Basically,
std::boxed::Box
allows us to move the stored value out of it just by dereferencing it:But equivalent code does not work for bumpalo's box:
Fails with
There's currently unstable associated function
std::boxed::Box::into_inner
, that allows us to do the same thing. It follows naming and some other conventions, and can be implemented easily. I propose to implement that.