Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unstable feature. #59

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Fix unstable feature. #59

wants to merge 3 commits into from

Conversation

zachs18
Copy link

@zachs18 zachs18 commented Aug 1, 2024

Currently, enabling the unstable cargo feature of thin-vec does not enable the Rust nightly feature trusted_len, so cargo +nightly build --features=unstable always fails. This PR adds #![cfg_attr(feature = "unstable", feature(trusted_len))] to remedy that.

Alternately, the fact that this hasn't been reported may indicate that the unstable feature is not used in the wild and could just be removed (or leave the feature itself and only remove the two TrustedLen impls gated under it).

Was only on `impl From<&mut [T]> for ThinVec<T>`, no other impls. Probably just a copy-paste remnant.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant