-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
[breaking-change] Remove TypedArena::with_capacity #36657
[breaking-change] Remove TypedArena::with_capacity #36657
Conversation
The function is unused by rustc. Also, it doesn't really follow the usual meaning of a `with_capacity` function because the first chunk allocation is now delayed until the first `alloc` call. This change reduces the size of `TypedArena` by one `usize`.
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ Thanks! |
📌 Commit cf50f5f has been approved by |
⌛ Testing commit cf50f5f with merge d6954e8... |
💔 Test failed - auto-win-gnu-64-opt |
@eddyb: run-make\output-type-permutations failed. I don't understand what went wrong. Is it the compile warnings about |
Don't see how it's relevant. @bors retry |
⌛ Testing commit cf50f5f with merge 7ce16f6... |
💔 Test failed - auto-mac-64-opt-rustbuild |
@eddyb: another failure that's not my fault? It's an exception in Python code... |
The bots may be acting up, but it's a weekend so I don't think I have any way of confirming. @bors retry |
[breaking-change] Remove TypedArena::with_capacity This is a follow-up to #36592. The function is unused by rustc. Also, it doesn't really follow the usual meaning of a `with_capacity` function because the first chunk allocation is now delayed until the first `alloc` call. This change reduces the size of `TypedArena` by one `usize`. @eddyb: we discussed this on IRC. Would you like to review it?
This is a follow-up to #36592.
The function is unused by rustc. Also, it doesn't really follow the
usual meaning of a
with_capacity
function because the first chunkallocation is now delayed until the first
alloc
call.This change reduces the size of
TypedArena
by oneusize
.@eddyb: we discussed this on IRC. Would you like to review it?