Amanieu / intrusive-rs

Intrusive collections for Rust
Apache License 2.0
423 stars 50 forks source link

Promote some features to stable #30

Closed jsheard closed 5 years ago

jsheard commented 5 years ago

With the minimum Rust version bumped to 1.31, there's no need to feature gate NonNull usage or const fn constructors for Link types anymore. The collections const fn constructors don't work on stable so those are still gated.

error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable (see issue #57563)
   --> src\linked_list.rs:625:6
    |
625 | impl<A: Adapter<Link = Link>> LinkedList<A> {
    |      ^
    |
    = help: add #![feature(const_fn)] to the crate attributes to enable

error: aborting due to previous error
Amanieu commented 5 years ago

Thanks!