-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
UI test cleanup: Extract lint from methods.rs test #3610
Conversation
This was previously duplicated in rust-lang#3605
65a9c34
to
0c54913
Compare
@@ -22,6 +24,9 @@ | |||
clippy::useless_format | |||
)] | |||
|
|||
#[macro_use] | |||
extern crate option_helpers; |
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.
Is this extern crate
necessary? Aren't we using the 2018 edition in the tests? Or do we need this because of the aux-build
of compiletest-rs?
use option_helpers::opt_map;
should be possible.
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.
Currently it's necessary yes. I think it's an issue with compiletest: Manishearth/compiletest-rs#150
@bors r+ |
📌 Commit a5d3f37 has been approved by |
UI test cleanup: Extract lint from methods.rs test Extracts the `result_map_unwrap_or_else` lint into a separate test file. This also extracts the `IteratorFalsePositives` struct and impl into `auxiliary/option_helpers.rs`. cc #2038
💔 Test failed - status-travis |
This should re- |
@bors r=flip1995 |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit a5d3f37 has been approved by |
@bors retry |
UI test cleanup: Extract lint from methods.rs test Extracts the `result_map_unwrap_or_else` lint into a separate test file. This also extracts the `IteratorFalsePositives` struct and impl into `auxiliary/option_helpers.rs`. cc #2038
💔 Test failed - status-appveyor |
@bors retry |
UI test cleanup: Extract lint from methods.rs test Extracts the `result_map_unwrap_or_else` lint into a separate test file. This also extracts the `IteratorFalsePositives` struct and impl into `auxiliary/option_helpers.rs`. cc #2038
☀️ Test successful - status-appveyor, status-travis |
Extracts the
result_map_unwrap_or_else
lint into a separate test file.This also extracts the
IteratorFalsePositives
struct and impl intoauxiliary/option_helpers.rs
.cc #2038