Skip to content

fix some clippy::pedantic warnings found in the codebase. #3224

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

Merged
merged 2 commits into from
Sep 28, 2018

Conversation

matthiaskrgr
Copy link
Member

cc #3172

@matthiaskrgr matthiaskrgr changed the title fix all clippy::use_self pedantic warnings found in the codebase. fix some clippy::pedantic warnings found in the codebase. Sep 26, 2018
@@ -46,12 +46,12 @@ impl Lint {
}

/// Returns all non-deprecated lints
pub fn active_lints(lints: &[Lint]) -> impl Iterator<Item=&Lint> {
pub fn active_lints(lints: &[Self]) -> impl Iterator<Item=&Lint> {
Copy link
Member

Choose a reason for hiding this comment

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

Another Lint here. Does the use_self lint not trigger here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it didn't, is it a FN?

Copy link
Member

@flip1995 flip1995 Sep 26, 2018

Choose a reason for hiding this comment

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

Seems like it. It works with Self, so I guess this is unintended. Playground

Copy link
Member Author

Choose a reason for hiding this comment

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

I updated the pr and added the change.
Can you file a ticket about the FN with your snipped please?

@flip1995 flip1995 merged commit 67d85bc into rust-lang:master Sep 28, 2018
@flip1995
Copy link
Member

Thanks!

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.

2 participants