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

Remove extern crate clippy_lints from tests #4784

Merged
merged 2 commits into from
Nov 7, 2019

Conversation

Manishearth
Copy link
Member

This causes rustc's build system to fail because it still tries to load the crate as a plugin: rust-lang/rust#66158 (comment) . I'm not sure why this happens, but for a short term fix we should remove these.

In one case it was just a convenient crate to use so i picked a different test. In another it was load-bearing, I had to delete the test. Idk if there's a better way around this.

changelog: none

@matthiaskrgr
Copy link
Member

Looks like some tests are still failing..? (or broke again in the meantime)

@msizanoen1
Copy link
Contributor

This shouldn't be necessary, see rust-lang/rust#66158 (comment)

#[macro_use]
extern crate clippy_lints;

declare_clippy_lint! {
Copy link
Member

Choose a reason for hiding this comment

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

Instead of removing this test, we can change this to the declare_lint macro from rustc. The intend of this test would persist.

@Manishearth
Copy link
Member Author

Managed to do this without disabling tests

@bors r+

self-reviewing so we can fix clippy, assuming that @flip1995's review comment was the only issue

@bors
Copy link
Contributor

bors commented Nov 7, 2019

📌 Commit 4721f44 has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Nov 7, 2019

⌛ Testing commit 4721f44 with merge 03806ed...

bors added a commit that referenced this pull request Nov 7, 2019
Remove `extern crate clippy_lints` from tests

This causes rustc's build system to fail because it still tries to load the crate as a plugin: rust-lang/rust#66158 (comment) . I'm not sure _why_ this happens, but for a short term fix we should remove these.

In one case it was just a convenient crate to use so i picked a different test. In another it was load-bearing, I had to delete the test. Idk if there's a better way around this.

changelog: none
@bors
Copy link
Contributor

bors commented Nov 7, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: Manishearth
Pushing 03806ed to master...

@bors bors merged commit 4721f44 into rust-lang:master Nov 7, 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.

5 participants