-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Some( NULL ) returns None #17120
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
Comments
I'm guessing this is a nullable pointer bug. Can this be enabled only for borrows, and not for raw pointers? |
I'd suspect this is from 52d6d3b @nick29581 |
Nominating because I want to make sure this is solvable. |
This is not a 1.0 issue, IMO. Just a miscompilation. |
Marking as P-backcompat-lang + 1.0 blocker, mostly because that is the conservative thing for us to do here at the moment. Hopefully we can fix quickly. |
If you try to take Some of a null pointer, it will be interpreted as None. This seems to occur for any two element enum with the same signature as option,
Example:
Which prints:
The text was updated successfully, but these errors were encountered: