As the alloc-wg crates grows, I think it makes sense to require a nightly compiler as the feature list grows and many things cannot be used on stable anyway. The biggest downsides so far are dispatch_from_dyn
, coerce_unsized
and specialization
for Vec
. Additionally, it will introduce dancing around core::ptr::Unique
, as NonNull
does not implement Send
or Sync
.
Are there any concerns not to require the nightly compiler?
I agree with using nightly only. The split in code is starting to get bad
Nightly or not, I would recommend against using Unique
outside of the standard library, it’s unclear whether it’ll always exist. Explicit impls of Send
and Sync
on types that contains NonNull
should work, would that be satisfactory? Or make your own private newtype of NonNull
that implements Send
and Sync
as needed.
Good advice, I'll change that.