-
Notifications
You must be signed in to change notification settings - Fork 1.7k
new lint: mutable_key_type #4885
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
603d400
to
791b7e9
Compare
r? @phansch |
Sorry was absent for the past few days. Can you add tests for this lint. I don't really get, why every function/method signature gets checked, but only map/set types get linted. IIUC only the |
791b7e9
to
2268f17
Compare
Fixed the lint and added a test. The lint will check for arguments, return types and non-wildcard locals. |
0f9a0cb
to
e6d638f
Compare
rebased. |
☔ The latest upstream changes (presumably #4930) made this pull request unmergeable. Please resolve the merge conflicts. |
Am I missing something or would it be easier to just use the |
Probably. I took this route to ensure I know what places we lint. |
That's a good argument for this way of writing the lint. @bors r+ |
📌 Commit e6d638f has been approved by |
💔 Test failed - checks-travis |
@bors retry changlog was there. Maybe it was the second |
💔 Test failed - checks-travis |
@bors retry |
💔 Test failed - checks-travis |
Huh, just tested the changlog check locally and it worked with the commit message of d5dbe1d |
@bors retry |
💔 Test failed - checks-travis |
|
@bors retry (maybe it was the |
💔 Test failed - checks-travis |
e6d638f
to
40435ac
Compare
@bors r+ |
📌 Commit 40435ac has been approved by |
☀️ Test successful - checks-travis, status-appveyor |
This fixes #732 - well, partly, it doesn't adress
Hash
impls, but the use of mutable types as map keys or set memberschangelog: add
mutable_key_type
lintr? @flip1995