Skip to content
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

Make more tests rustfixable #4558

Merged
merged 8 commits into from
Sep 21, 2019
Merged

Make more tests rustfixable #4558

merged 8 commits into from
Sep 21, 2019

Conversation

Manishearth
Copy link
Member

@Manishearth Manishearth commented Sep 20, 2019

changelog: Fix various lint suggestions

Progress towards #3630

r? @phansch

@@ -2,7 +2,8 @@
#[warn(clippy::eq_op)]
#[allow(clippy::identity_op, clippy::double_parens, clippy::many_single_char_names)]
#[allow(clippy::no_effect, unused_variables, clippy::unnecessary_operation, clippy::short_circuit_statement)]
#[warn(clippy::nonminimal_bool)]
#[allow(clippy::nonminimal_bool)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is tested in another file? Everything else LGTM

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep

Copy link
Member

@phansch phansch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a ton!

Not entirely sure about the map_entry change and one test file needs fixing, otherwise LGTM

clippy_lints/src/entry.rs Outdated Show resolved Hide resolved
--> $DIR/for_loop_unfixable.rs:27:15
|
LL | for _v in vec.iter().next() {}
| ^^^ help: use `!` to invoke the macro: `vec!`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test file is missing the vec local.

@Manishearth
Copy link
Member Author

@bors r=phansch

@bors
Copy link
Collaborator

bors commented Sep 20, 2019

📌 Commit b352c2d has been approved by phansch

@bors
Copy link
Collaborator

bors commented Sep 20, 2019

⌛ Testing commit b352c2d with merge 81c3d5d...

bors added a commit that referenced this pull request Sep 20, 2019
Make more tests rustfixable

Progress towards #3630

r? @phansch
@bors
Copy link
Collaborator

bors commented Sep 20, 2019

💔 Test failed - checks-travis

@Manishearth
Copy link
Member Author

@bors retry

bors added a commit that referenced this pull request Sep 20, 2019
Make more tests rustfixable

changelog: Fix various lint suggestions

Progress towards #3630

r? @phansch
@bors
Copy link
Collaborator

bors commented Sep 20, 2019

⌛ Testing commit b352c2d with merge 49fcdfa...

@bors
Copy link
Collaborator

bors commented Sep 20, 2019

💔 Test failed - status-appveyor

@flip1995
Copy link
Member

./util/dev fmt

@Manishearth
Copy link
Member Author

@bors r=phansch

@bors
Copy link
Collaborator

bors commented Sep 21, 2019

📌 Commit 33f1415 has been approved by phansch

bors added a commit that referenced this pull request Sep 21, 2019
Make more tests rustfixable

changelog: Fix various lint suggestions

Progress towards #3630

r? @phansch
@bors
Copy link
Collaborator

bors commented Sep 21, 2019

⌛ Testing commit 33f1415 with merge 48d6ef5...

@bors
Copy link
Collaborator

bors commented Sep 21, 2019

💔 Test failed - status-appveyor

@Manishearth
Copy link
Member Author

@bors r=phansch

@bors
Copy link
Collaborator

bors commented Sep 21, 2019

📌 Commit 2fecf75 has been approved by phansch

@bors
Copy link
Collaborator

bors commented Sep 21, 2019

⌛ Testing commit 2fecf75 with merge f21cd81...

bors added a commit that referenced this pull request Sep 21, 2019
Make more tests rustfixable

changelog: Fix various lint suggestions

Progress towards #3630

r? @phansch
@Manishearth
Copy link
Member Author

This is what i get for making a PR in a hurry because I didn't think I'd be back on my laptop until after my flight

@bors
Copy link
Collaborator

bors commented Sep 21, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: phansch
Pushing f21cd81 to master...

@bors bors merged commit 2fecf75 into rust-lang:master Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants