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

0.6.2 compilation fails #33

Closed
g1mv opened this issue Jan 24, 2022 · 3 comments
Closed

0.6.2 compilation fails #33

g1mv opened this issue Jan 24, 2022 · 3 comments

Comments

@g1mv
Copy link

g1mv commented Jan 24, 2022

Hello and thanks for your library!
On compilation I get the following error which is mostly self-explanatory:

error[E0658]: use of unstable library feature 'shrink_to': new API
--> bimap-0.6.2/src/hash.rs:335:25
|
335 | self.left2right.shrink_to(min_capacity);
| ^^^^^^^^^
|
= note: see issue #56431 rust-lang/rust#56431 for more information

@billyrieger
Copy link
Owner

Oh, I didn't realize until now that HashMap::shrink_to was only added in Rust 1.56. Are you able to update your Rust install? The current stable release is 1.58.1.

@g1mv
Copy link
Author

g1mv commented Jan 25, 2022

Yes, that's what I did and it works fine, but I thought you might want to know as in some environments it might not be easy to update (due to ACL restrictions for example etc.). Or maybe you could indicate somewhere that the latest rust version is required for 0.6.2? (1.56 is dated late October 2021 which is quite recent). It's not a major problem anyways, thanks for your reply 😃

@billyrieger
Copy link
Owner

I will at least add some information to the README about the minimum supported Rust version. Thank you for pointing it out.

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

No branches or pull requests

2 participants