-
Notifications
You must be signed in to change notification settings - Fork 9
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
Can/should things like Box<T, A> move to libcore? #24
Comments
You could say the same for almost everything in liballoc... |
Yes. On principle, if there’s a "version" of an allocator-generic container without a default allocator, there’s no reason not to have it in libcore. But how do we make that happen? Does |
I don't want to make |
@Ericson2314 that sounds more like splitting |
@gnzlbg yes it is hard and yes I'd like to make existing core a facade too. But that is another reason why I'd like to not put things in core now. Even if we agree to split it up later, if those items get entangled with everything else in the meantime it will be a lot harder than if those items lived in their own crate from the get-go. |
As |
Given that
Alloc
is defined incore::alloc
-- andalloc::alloc::Alloc
is just a re-export -- would be be reasonable for things likeBox
to live inlibcore
? It seems like it would work, there just wouldn't be a default for the type parameter when using it fromcore
instead ofalloc
orstd
...The text was updated successfully, but these errors were encountered: