-
Notifications
You must be signed in to change notification settings - Fork 19
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
NamedValues::get
footgun.
#101
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NamedValues::get
has a subtle footgun: The given reference to aNamedField
must be pointer-equal to aNamedField
inNamedValues
. But, becauseNamedField
isCopy
/Clone
, it's trivial to construct programs that subtly violate this requirement; e.g., this program panics:...but this program is fine:
The text was updated successfully, but these errors were encountered: