-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New lint: always_true_conditions #14434
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
base: master
Are you sure you want to change the base?
Conversation
r? @Alexendoo rustbot has assigned @Alexendoo. Use |
The lintcheck results shows 64 hits, which seem to be all false positives. |
@Dominic-Moser Do you plan to continue working on this lint? |
Reminder, once the PR becomes ready for a review, use |
@rustbot ready, sorry school's been hitting hard |
never mind, I have to to checks to make sure the same variable is being used throughout the whole expression |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@samueltardieu I am so confused right now, I keep trying to rebase and it keeps saying I need to rebase. I am sure this is my fault but i have no clue how to fix this... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Your first commit contains a lot of unrelated changes 9ce8566 What I would do is first reset your branch to the current state of git fetch upstream
git reset --hard upstream/master Then grab the main parts of the PR - the lint and the test file git checkout b55d82f89c1b29f25044aeaafbbdb7a241c82c3b -- clippy_lints/src/always_true_conditions.rs tests/ui/always_true_conditions.rs Now you can run |
@rustbot ready |
This lint closes #1593
This is my first lint, please let me know if I messed something up anywhere!
changelog: [always_true_conditions]: add new lint