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

Export AllocError as well as Allocator. #223

Merged
merged 1 commit into from
Jan 16, 2021

Conversation

cfallin
Copy link
Contributor

@cfallin cfallin commented Jan 16, 2021

This PR re-exports the AllocError type alongside Allocator and others from the raw submodule.

This seems to be necessary to implement the Allocator trait from outside the crate (and I want to use exported types from this crate so that I don't have to depend on the unstable allocator API directly). It allowed me to instantiate hashbrown hashmaps using bumpalo over in bytecodealliance/regalloc.rs#115; I couldn't work out another way to do this. If there is a more direct way, please do let me know! (Thanks for this excellent crate and the configurable allocator interface, in any case!)

@Amanieu
Copy link
Member

Amanieu commented Jan 16, 2021

CI is failing on nightly.

@Amanieu
Copy link
Member

Amanieu commented Jan 16, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Jan 16, 2021

📌 Commit c5c01d6 has been approved by Amanieu

@bors
Copy link
Contributor

bors commented Jan 16, 2021

⌛ Testing commit c5c01d6 with merge fabd0c6...

@bors
Copy link
Contributor

bors commented Jan 16, 2021

☀️ Test successful - checks-travis
Approved by: Amanieu
Pushing fabd0c6 to master...

@bors bors merged commit fabd0c6 into rust-lang:master Jan 16, 2021
@cfallin cfallin deleted the export-alloc-error branch January 16, 2021 18:41
@cfallin
Copy link
Contributor Author

cfallin commented Jan 16, 2021

Thanks! Would it be possible for you to consider doing a point-release that includes this?

@Amanieu
Copy link
Member

Amanieu commented Jan 16, 2021

Published 0.10.0

@Amanieu
Copy link
Member

Amanieu commented Jan 18, 2021

I've had to yank 0.10.0 due to #225 and #226. I'm hoping to have these issues resolved soon. One notable change is that we cant't export a custom Allocator trait, however we can have bumpalo-specific variants of HashMap, HashSet and RawTable supported.

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.

3 participants