Move crate::raw::alloc into crate::alloc#679
Conversation
|
I don't understand the issue with the name conflict. Our module is |
|
However, I believe that this is no longer necessary with the latest MSRV, so, we could probably remove it? I'll poke around. |
210eb06 to
c9b8ea7
Compare
|
So, we can't remove the The bottom line is that the "extern prelude" can be modified by cargo and rust flags, but when modifying it in code, it has to add the crate name into the symbol namespace at the root of the crate; this is not possible to do otherwise. rust-lang/rfcs#3875 will make this not a requirement, but, for now, it is one. |
crate::raw::alloc into crate::alloc2crate::raw::alloc into crate::alloc
Ultimately, it would be ideal to make
HashTablethe canonical "raw" API thatHashMapandHashSetare based upon.However, the
allocmodule will still be needed by everything, and because there would be a name conflict withexternal crate alloc, we'll name italloc2instead and hoist it out of therawmodule.(I could have given it a much cringier name, like
ourlloc, but I decided not to in this case.)