-
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
Why isn't indexing_slicing a restriction ? #2933
Comments
To me this lint is similar to integer_arithmetic. Both of these lints suggest that you forgo basic features of the language (i.e. indexing and arithmetic operators) in the name of safety. |
The same applies to shadowing, for example. |
That seems like that was to be in accordance with the issue, but this definitely looks like a restriction lint and is under restriction in the clippy rfc. I'm in favor of switching back @oli-obk thoughts? |
Yea... I guess I was confused. Restriction makes more sense |
It enforces a coding style that does not make sense for every crate, and it should IMO be opt-in, even with
-D clippy-pedantic
.The text was updated successfully, but these errors were encountered: