-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
integer_arithmetic: detect integer arithmetic on references. #5329
Conversation
Also fixes the same for float_arithmetic. changelog: integer_arithmetic,float_arithmetic: fix false negatives with references on integers Fixes rust-lang#5328
7f0d8b3
to
c7c7ab2
Compare
tests/ui/arithmetic.stderr
Outdated
LL | (&f1 + &f2) | ||
| ^^^^^^^^^^^ | ||
|
||
error: aborting due to 34 previous errors | ||
|
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.
Wait this should fail the --limit-stderr-length
test 🤔
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.
I have a fix for this.
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.
Should I split up the into two, one for float and one for int arithmetic?
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.
Would be good. I just pushed the fix for this here. So please pull before splitting up the tests.
@bors r+ Thanks! |
📌 Commit ec1dcde has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
changelog: integer_arithmetic fix false negatives with references on integers
Fixes #5328