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

Validity of get_mut on MaybeUninit #76091

Closed
Dylan-DPC-zz opened this issue Aug 30, 2020 · 1 comment
Closed

Validity of get_mut on MaybeUninit #76091

Dylan-DPC-zz opened this issue Aug 30, 2020 · 1 comment

Comments

@Dylan-DPC-zz
Copy link

Creating this issue to track the discussion on whether this is valid or not, from this FIXME note:

This is calling get_mut on an uninitialized
MaybeUninit (here and elsewhere in this file). Revisit this once
we decided whether that is valid or not.
We can do this only because we are libstd and coupled to the compiler.
(FWIW, using freeze would not be enough; flt2dec::Part is an enum!)

The issue being mentioned when the fixme was closed without addressing this concern, and the new tracking issue doesn't raise it, so created this so that we can discuss it here and link it to the tracking issue

cc @RalfJung

@RalfJung
Copy link
Member

Something went wrong and two issues got created, closing in favor of #76092.

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

No branches or pull requests

2 participants