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

[breaking-change] Remove TypedArena::with_capacity #36657

Merged
merged 1 commit into from
Sep 25, 2016

Conversation

nnethercote
Copy link
Contributor

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?

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`.
@rust-highfive
Copy link
Collaborator

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@eddyb
Copy link
Member

eddyb commented Sep 22, 2016

@bors r+ Thanks!

@bors
Copy link
Contributor

bors commented Sep 22, 2016

📌 Commit cf50f5f has been approved by eddyb

@bors
Copy link
Contributor

bors commented Sep 23, 2016

⌛ Testing commit cf50f5f with merge d6954e8...

@bors
Copy link
Contributor

bors commented Sep 23, 2016

💔 Test failed - auto-win-gnu-64-opt

@nnethercote
Copy link
Contributor Author

@eddyb: run-make\output-type-permutations failed. I don't understand what went wrong. Is it the compile warnings about main never being used? I don't know how that relates to my patch. Please help!

@eddyb
Copy link
Member

eddyb commented Sep 24, 2016

Don't see how it's relevant. @bors retry

@bors
Copy link
Contributor

bors commented Sep 24, 2016

⌛ Testing commit cf50f5f with merge 7ce16f6...

@bors
Copy link
Contributor

bors commented Sep 24, 2016

💔 Test failed - auto-mac-64-opt-rustbuild

@nnethercote
Copy link
Contributor Author

@eddyb: another failure that's not my fault? It's an exception in Python code...

@eddyb
Copy link
Member

eddyb commented Sep 24, 2016

The bots may be acting up, but it's a weekend so I don't think I have any way of confirming. @bors retry

@bors
Copy link
Contributor

bors commented Sep 24, 2016

⌛ Testing commit cf50f5f with merge a0843d7...

bors added a commit that referenced this pull request Sep 24, 2016
[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?
@bors bors merged commit cf50f5f into rust-lang:master Sep 25, 2016
@nnethercote nnethercote deleted the rm-TypedArena-with_capacity branch October 7, 2016 05:04
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

Successfully merging this pull request may close these issues.

5 participants