Description
We have reached the end of what we can do in #66151 (making mem::uninitialized
panic when it is used incorrectly) without enormous amounts of crater failures. However, there is still one more thing we can do: we can make mem::uninitialized()
inaccessible in future editions. We seem to have the support of at least one lang-team member as well. :) Cc @joshtriplett
@bstrie mentioned they have a patch doing this, though the RFC got closed. Reading the Zulip discussion, it looks like some libs team members were concerned, though the concern seems to have been mostly around hiding things from the docs. I am not talking about the docs here, I just want edition 2024 code to not compile when it calls mem::uninitialized
. @m-ou-se I wonder if you would be fine with that?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status