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 rustc features not depending on each other #199

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

e00E
Copy link
Contributor

@e00E e00E commented Aug 20, 2024

This crate has several features related to the rustc version. It is currently a bug that not all off these features depend on the lower rustc version features. This commit fixes this.

This bug leads to bad user experience. For example, you notice that by default tinyvec doesn't work with arrays of all sizes. The docs tell you to enable the rustc_1_55 feature to fix this. You see that there are features for even newer rustc versions so you pick the most recent one because you use the current stable compiler. To your surprise, this does not enable tinyvec to work with arrays of all sizes.

This change is correct because features are additive and rustc versions are backward compatible.

This crate has several features related to the rustc version. It is currently a bug that not all off these features depend on the lower rustc version features. This commit fixes this.

This bug leads to bad user experience. For example, you notice that by default tinyvec doesn't work with arrays of all sizes. The docs tell you to enable the rustc_1_55 feature to fix this. You see that there are features for even newer rustc versions so you pick the most recent one because you use the current stable compiler. To your surprise, this does not enable tinyvec to work with arrays of all sizes.

This change is correct because features are additive and rustc versions are backward compatible.
@e00E e00E changed the title Fix rustc features not dependin on each other Fix rustc features not depending on each other Aug 20, 2024
@Lokathor Lokathor merged commit a212228 into Lokathor:main Aug 21, 2024
5 checks passed
@Lokathor
Copy link
Owner

I thought we already had it this way, good fix.

@Lokathor
Copy link
Owner

released in tinyvec-1.8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants