orlp / slotmap

Slotmap data structure for Rust
zlib License
1.16k stars 70 forks source link

Min const generics #58

Closed Uriopass closed 3 years ago

Uriopass commented 3 years ago

With min const generics in 1.51, get_disjoint_mut should now be usable in stable. It is gated behind the "unstable" feature, but sadly also behind the "nightly" feature.

    #[cfg(all(nightly, any(doc, feature = "unstable")))]

It would be useful if the nightly part of the cfg could be removed.

orlp commented 3 years ago

Yeah, I'll get on that soon. I don't want to bump the minimum required Rust version so I'll detect it instead and remove the nightly tag if you have a recent enough Rust.

Uriopass commented 3 years ago

That's amazing! I didn't know you could do that :-)

orlp commented 3 years ago

Fixed in https://github.com/orlp/slotmap/commit/58605981724ce84080ccf150f1e43762aa3a5d66, available in release 1.0.3.