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 #4575

Merged
merged 24 commits into from
Sep 25, 2019
Merged

Make more tests rustfixable #4575

merged 24 commits into from
Sep 25, 2019

Conversation

Manishearth
Copy link
Member

@Manishearth Manishearth commented Sep 25, 2019

Fixes #3630

changelog: Improve suggestions for many lints in preparation for cargo fix --clippy

r? @phansch @yaahc

@Manishearth
Copy link
Member Author

this PR will grow the longer folks take to review it 🤣

@Manishearth Manishearth force-pushed the suggestions branch 2 times, most recently from 6408650 to 895c661 Compare September 25, 2019 17:35
Copy link
Contributor

@oli-obk oli-obk left a comment

Choose a reason for hiding this comment

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

some nits, lgtm otherwise

snippet(self.cx, self.map.span, "map"),
snippet(self.cx, params[1].span, ".."));

db.span_suggestion(
db.span_help(
Copy link
Contributor

Choose a reason for hiding this comment

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

use a label, otherwise we get the source printed twice

then {
// do not recurse within patterns, as they may have
Copy link
Contributor

Choose a reason for hiding this comment

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

comment cut off

// do not recurse within patterns, as they may have
if let Node::Pat(_) = parent_node {
return;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

semicolon?

"static".to_string(),
Applicability::MachineApplicable,
);
db.span_help(const_kw_span, "make this a static item (maybe with lazy_static)");
Copy link
Contributor

Choose a reason for hiding this comment

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

use span_label

@Manishearth
Copy link
Member Author

Addressed. Need to fix the toolchain now.

@Manishearth
Copy link
Member Author

@bors r=oli-obk

unsure if the osx issue has been fixed yet, might as well try

@bors
Copy link
Collaborator

bors commented Sep 25, 2019

📌 Commit c778b61 has been approved by oli-obk

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

Burning through #3630

changelog: Improve suggestions for many lints in preparation for `cargo fix --clippy`

r? @phansch @yaahc
@bors
Copy link
Collaborator

bors commented Sep 25, 2019

⌛ Testing commit c778b61 with merge a5c705c...

@bors
Copy link
Collaborator

bors commented Sep 25, 2019

💔 Test failed - status-appveyor

@Manishearth Manishearth force-pushed the suggestions branch 2 times, most recently from 2bfbb67 to 472745c Compare September 25, 2019 20:40
@Manishearth
Copy link
Member Author

@bors r=oli-obk

@bors
Copy link
Collaborator

bors commented Sep 25, 2019

📌 Commit 472745c has been approved by oli-obk

@bors
Copy link
Collaborator

bors commented Sep 25, 2019

🌲 The tree is currently closed for pull requests below priority 10, this pull request will be tested once the tree is reopened

@Manishearth
Copy link
Member Author

@bors treeclosed-

I'm marking OSX as an allowed failure so that we can get a clippyup landed immediately after the cargo update. There's three PRs worth of breakages here and I'd rather not buffer futher, especially since there's another big breakage coming soon.

@bors
Copy link
Collaborator

bors commented Sep 25, 2019

⌛ Testing commit 472745c with merge aceab00...

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

Burning through #3630

changelog: Improve suggestions for many lints in preparation for `cargo fix --clippy`

r? @phansch @yaahc
@Manishearth
Copy link
Member Author

er, wrong PR

@Manishearth
Copy link
Member Author

@bors r=oli-obk

@bors
Copy link
Collaborator

bors commented Sep 25, 2019

📌 Commit eb1e9cd has been approved by oli-obk

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

Burning through #3630

changelog: Improve suggestions for many lints in preparation for `cargo fix --clippy`

r? @phansch @yaahc
@bors
Copy link
Collaborator

bors commented Sep 25, 2019

⌛ Testing commit eb1e9cd with merge f3e82fc...

@Manishearth
Copy link
Member Author

@bors r=oli-obk

@bors
Copy link
Collaborator

bors commented Sep 25, 2019

📌 Commit b94f2e8 has been approved by oli-obk

@bors
Copy link
Collaborator

bors commented Sep 25, 2019

⌛ Testing commit b94f2e8 with merge 82e96c7...

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

Burning through #3630

changelog: Improve suggestions for many lints in preparation for `cargo fix --clippy`

r? @phansch @yaahc
@Manishearth
Copy link
Member Author

@bors r=oli-obk

@bors
Copy link
Collaborator

bors commented Sep 25, 2019

📌 Commit 866338e has been approved by oli-obk

@bors
Copy link
Collaborator

bors commented Sep 25, 2019

⌛ Testing commit 866338e with merge c8de7c8...

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

Burning through #3630

changelog: Improve suggestions for many lints in preparation for `cargo fix --clippy`

r? @phansch @yaahc
@Manishearth
Copy link
Member Author

@bors r=oli-obk

we now fix all the suggestions, updated PR body

@bors
Copy link
Collaborator

bors commented Sep 25, 2019

📌 Commit 49374a4 has been approved by oli-obk

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

Fixes #3630

changelog: Improve suggestions for many lints in preparation for `cargo fix --clippy`

r? @phansch @yaahc
@bors
Copy link
Collaborator

bors commented Sep 25, 2019

⌛ Testing commit 49374a4 with merge 1366629...

@bors
Copy link
Collaborator

bors commented Sep 25, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: oli-obk
Pushing 1366629 to master...

@bors bors merged commit 49374a4 into rust-lang:master Sep 25, 2019
@Manishearth Manishearth deleted the suggestions branch September 25, 2019 22:24
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.

Tracking Issue: Fixing broken lint suggestions
3 participants