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

TryReserveError is not re-exported #12

Open
CeleritasCelery opened this issue Apr 3, 2024 · 2 comments
Open

TryReserveError is not re-exported #12

CeleritasCelery opened this issue Apr 3, 2024 · 2 comments

Comments

@CeleritasCelery
Copy link

The version of TryReserveError from allocator_api2 is not publicly re-exported, so it cannot be named in types. Unless there is a specific reason for this, it seems like it should be exported to make it at least as useful as the std-lib version.

Also the docs for try_reserve still reference the one in std::collections.

@zakarumych
Copy link
Owner

Should've been fixed in a16a359

@amunra
Copy link

amunra commented Sep 23, 2024

It looks like the fix introduced by a16a359 no longer appears in stable/mod.rs.

In other words, the bug is still there and the Vec::try_reserve API can't be compiled without nightly.

It looks like the latest released crate version doesn't have this patch somehow, but the latest code in the main branch does.

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

3 participants