In #682, we add a Self: NoCell bound to AsBytes::write_to and similar methods. This is technically unnecessary since we should be able to read the bytes of &self in the same way that an &UnsafeCell can be read, but removing the bound will require some manual reimplementation and careful reasoning about soundness.
In #682, we add a
Self: NoCellbound toAsBytes::write_toand similar methods. This is technically unnecessary since we should be able to read the bytes of&selfin the same way that an&UnsafeCellcan be read, but removing the bound will require some manual reimplementation and careful reasoning about soundness.