-
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
Fix or_fun_call for index operator #6267
Conversation
r? @flip1995 (rust_highfive has picked a reviewer for you, use r? to override) |
Oops. The fix for references (e.g. |
1a03eec
to
cfa3c3e
Compare
Need to resolve the question of including slices at #6267. Also, I think I should amend this to not include |
I don't think we should lint on indexing slices, arrays or vecs, since those operations are O(1), even with bounds checks, while indexing into hashmaps can be way more involved. |
cfa3c3e
to
9cab084
Compare
Okay, now it will only lint when indexing |
@bors r+ Thanks! |
📌 Commit 9cab084 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
changelog: Fix or_fun_call for index operator
Fixes #6266