With rust-lang/rust#121501, Rust may expose and subsequently stabilize the Freeze trait, which is automatically implemented for all types free of UnsafeCell (excluding by indirection such as &UnsafeCell). This is analogous to our NoCell trait, but our trait must be explicitly derived.
Once Freeze is stabilized, we should first emit a
bound on the definition of NoCell when zerocopy is compiled with sufficiently-recent toolchains.
Then, we should consider whether to eliminate our NoCell trait altogether in favor of re-exporting Freeze as NoCell.
With rust-lang/rust#121501, Rust may expose and subsequently stabilize the
Freezetrait, which is automatically implemented for all types free ofUnsafeCell(excluding by indirection such as&UnsafeCell). This is analogous to ourNoCelltrait, but our trait must be explicitly derived.Once
Freezeis stabilized, we should first emit abound on the definition of
NoCellwhen zerocopy is compiled with sufficiently-recent toolchains.Then, we should consider whether to eliminate our
NoCelltrait altogether in favor of re-exportingFreeze as NoCell.