-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Avoid mut_key on types of unknown layout #5056
Conversation
9ebd0d5
to
f7c83c1
Compare
r? @flip1995 |
Does this also fix #5043 by any chance? |
I believe it does. I should probably add a test for this, too. Gimme a sec... |
f7c83c1
to
da5663e
Compare
Added the missing test case. |
Yep, it does indeed fix both. r? |
Citing from the issue:
See also Playground: Can you modify the test case, so that it uses a tuple? |
da5663e
to
0ad5c9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
./util/dev fmt
r=me with formatting.
0ad5c9a
to
59fd637
Compare
@bors r+ |
📌 Commit 59fd637 has been approved by |
☀️ Test successful - checks-travis, status-appveyor |
This fixes #5020 by requiring a known layout for the key type before linting. Edit: This fixes #5043, too.
changelog: none