-
Notifications
You must be signed in to change notification settings - Fork 119
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
Update Alloc
trait to nightly, add nightly feature
#68
Conversation
It looks like Looks like we're getting rustc 1.41 from rustup: https://dev.azure.com/fitzgen/bumpalo/_build/results?buildId=161&view=logs&j=4348da94-6ff4-557c-1304-492c812b9157&t=a4ec2f30-9a1e-5354-6437-3d76911eae85&l=12 Is |
I meant to get back to this earlier when I saw that the build failed. It looks like I'll poke around a bit |
Okey, so it seems like the alloc trait is under major flux right this moment. I guess it would make sense to wait until things have settled a bit to update and merge? I presume what you want to do is to track the (feature flagged) alloc trait present in the stable releases? |
Yeah, let's hold off on this until most changes to the |
Sounds like a plan! |
|
Sounds good. Unclear to me whether this PR should be revived or whether starting from scratch would be easier. I don't have time to drive it forward, but I can review the eventual implementation. |
It seems that this PR only misses the latest two commits (which only contains some modification in the readme file). @hansihe What do you think? Let's revive this PR? |
Both For me at least, things in the Rust ecosystem have progressed to the point where I would be fine with My fork, located here, updates the traits to latest nightly, but also removes all collections from the codebase. It's understandable if @fitzgen would prefer to keep the collections in the crate for now. If that's the case, I will be maintaining my fork as the effort is pretty minimal. If someone else would like to contribute an updated collections implementation on top of my fork in order to get things merged back here, I would be really happy with that too. |
Yes, I'd like to keep the In the meantime, I'd still like to have an
Yep, this is the eventual goal but we need custom allocators on stable before we remove the collections module. (I don't mind you maintaining a fork, or course, but out of curiosity: what would your fork have over the main crate other than removing the collections module? Since the collections module is off by default and requires a cargo flag to enable, it doeTsn't seem like forking is really getting you that much, unless there are additional changes.) |
I just don't have the time right now to update the different collections to the newest version of the trait, so I won't be able to make a PR that includes that. If this repo lands an update to the trait, then that's brilliant and I'll of course switch to using that directly instead. |
Fixed in #92. |
Alloc
toAllocRef
, along with latest nightlyAllocRef
trait (Remove common usage pattern fromAllocRef
rust-lang/rust#69026)nightly
feature, which uses the alloc trait in core instead of the copied one in the crate