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

Add run-rustfix where it already works #3626

Merged
merged 1 commit into from
Jan 5, 2019
Merged

Conversation

phansch
Copy link
Member

@phansch phansch commented Jan 4, 2019

This PR adds // run-rustfix headers to tests for MachineApplicable lints where
applying the suggestions works without any errors.

@detrumi
Copy link
Member

detrumi commented Jan 4, 2019

Is the goal to make it the default somehow once all tests have been fixed?
If it is, we should create a tracking topic for lints for which this doesn't work yet.

@phansch
Copy link
Member Author

phansch commented Jan 4, 2019

I created a tracking issue here: #3630

My idea is to gradually add the annotation to the failing test files and then directly fix the suggestions for the lints that are tested in that test file. New lints that use MachineApplicable suggestions should use // run-rustfix in their tests from the start.

@phansch phansch added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 4, 2019
@oli-obk
Copy link
Contributor

oli-obk commented Jan 5, 2019

@bors r+

whooo! awesome

@bors
Copy link
Contributor

bors commented Jan 5, 2019

📌 Commit 319f18e has been approved by oli-obk

@bors
Copy link
Contributor

bors commented Jan 5, 2019

⌛ Testing commit 319f18e with merge 05467ab...

bors added a commit that referenced this pull request Jan 5, 2019
Add run-rustfix where it already works

This PR adds `// run-rustfix` headers to tests for `MachineApplicable` lints where
applying the suggestions works without any errors.
@bors
Copy link
Contributor

bors commented Jan 5, 2019

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

@bors bors merged commit 319f18e into rust-lang:master Jan 5, 2019
@phansch phansch deleted the rustfix_works branch January 5, 2019 18:12
flip1995 pushed a commit to flip1995/rust-clippy that referenced this pull request Jun 28, 2024
solaris add support for threadname.

from std::unix::thread::set_name, pthread_setname_np is a weak symbol (not always had been available). Other than that, similar to linux only having twice of its buffer limit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants