-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Tracking issue for try_reserve
: RFC 2116 fallible collection allocation
#48043
Comments
Hi, this feature will require |
I can use some mentorship on what's the best way to implement oom=panic/abort . Should I emit a global variable through rustc depending on this case? I was taking inspiration from #32900 but there might be an easier way to emit a boolean global variable. |
cc @gankro, can you help mentor? |
|
We've been talking about panic::set_hook-like hooking for the new oom lang item in #49668, this could be how this works. |
@alexcrichton, how does #51041 fit with the goal of implementing some way to opt into oom=panic? |
@SimonSapin we'd decide that the regression is acceptable, and we'd revert the change. |
You use a conditional tense, but |
Ok sure, we can figure it out in the implementation details? AFAIK there's no need to revert the change as it has basically no benefit today. It's a trivial change to revert as well, it's one line in the standard library |
Would it be possible/wise to put TryReserveError into core ? I may need to have access to this struct when my crate compile without alloc. |
This is a tracking issue for the
try_reserve
part of the RFC "fallible collection allocation" (rust-lang/rfcs#2116).Steps:
HashSet::try_reserve
: Replace HashMap implementation with SwissTable (as an external crate) #58623API:
The text was updated successfully, but these errors were encountered: