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

Eschew arena::Arena in regions-mock-tcx #21983

Merged

Conversation

pnkfelix
Copy link
Member

@pnkfelix pnkfelix commented Feb 5, 2015

Ported regions-mock-tcx to use TypedArena rather than Arena since it holds cyclic structure (which the Arena API updated for the Drop-Check-Rule cannot handle).

Plus, the use of arena::Arena here really is not justified; the allocated values are all the same type anyway.

…holds

cyclic structure (which the Arena API updated for dropck cannot handle).
@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

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

@pnkfelix
Copy link
Member Author

pnkfelix commented Feb 5, 2015

spawned off of #21972

@pnkfelix
Copy link
Member Author

pnkfelix commented Feb 5, 2015

(also, really, anyone can review this. It is a trivial refactoring from one API to another.)

@huonw
Copy link
Member

huonw commented Feb 5, 2015

@bors r+ e4a6 rollup

@huonw huonw assigned huonw and unassigned nikomatsakis Feb 5, 2015
Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 6, 2015
…gions-mock-tcx, r=huonw

 Ported regions-mock-tcx to use TypedArena rather than Arena since it holds cyclic structure (which the Arena API updated for the Drop-Check-Rule cannot handle).

Plus, the use of `arena::Arena` here really is not justified; the allocated values are all the same type anyway.
@bors bors merged commit e4a678d into rust-lang:master Feb 7, 2015
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