Skip to content

Deny warnings in every main sub-crate #7241

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
May 18, 2021

Conversation

flip1995
Copy link
Member

Pointed out by @xFrednet in #7229 (comment)

This enables the same (rustc) lints in every main sub-crate:

  • clippy
  • clippy_lints
  • clippy_utils
  • clippy_dev

In addition it forwards the deny-warnings feature to those sub-crates, so we don't miss warnings that then become a problem during sync. (I wanted to fix that before, but forgot about it, so thanks for pointing it out @xFrednet!)

changelog: none

flip1995 added 2 commits May 18, 2021 11:05
This enables the same warnings that are enabled in `clippy_lints` also
in `clippy_utils` and `clippy_dev`. Then it makes sure, that the
`deny-warnings` feature is passed down to `clippy_lints` and
`clippy_utils` when compiling Clippy.
@rust-highfive
Copy link

r? @camsteffen

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 18, 2021
@camsteffen
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented May 18, 2021

📌 Commit 9586ddb has been approved by camsteffen

@bors
Copy link
Contributor

bors commented May 18, 2021

⌛ Testing commit 9586ddb with merge 98cddc5...

@bors
Copy link
Contributor

bors commented May 18, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: camsteffen
Pushing 98cddc5 to master...

@bors bors merged commit 98cddc5 into rust-lang:master May 18, 2021
@flip1995 flip1995 deleted the warn-deny-warnings branch May 18, 2021 14:45
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