We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I expected this code to trigger an "integer arithmetic" warning:
#![warn(clippy::integer_arithmetic)] pub fn foo(x: &i32) -> i32 { let a = 5; a+x }
However, no such warning is emitted.
The text was updated successfully, but these errors were encountered:
integer_arithmetic: detect integer arithmetic on references.
7f0d8b3
changelog: integer_arithmetic fix false negatives with references on integers Fixes rust-lang#5328
Auto merge of #5329 - matthiaskrgr:int_arith_on_ref_5328, r=flip1995
e004b94
integer_arithmetic: detect integer arithmetic on references. changelog: integer_arithmetic fix false negatives with references on integers Fixes #5328
c7c7ab2
matthiaskrgr
Successfully merging a pull request may close this issue.
I expected this code to trigger an "integer arithmetic" warning:
However, no such warning is emitted.
The text was updated successfully, but these errors were encountered: