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

Put internal lints behind a feature flag #6306

Closed
ghost opened this issue Nov 8, 2020 · 0 comments · Fixed by #6308
Closed

Put internal lints behind a feature flag #6306

ghost opened this issue Nov 8, 2020 · 0 comments · Fixed by #6308
Assignees

Comments

@ghost
Copy link

ghost commented Nov 8, 2020

We shouldn't ship internal lints to end users. It's just wasted bytes and late passes. There is also the possibility that an internal lint "escapes from the the lab" and causes crashes or bad suggestions. We can put the lints behind a feature flag and only enable it when doing the dogfood test. That would ensure that the lints continue to check Clippy code without making it into a release.

@matthiaskrgr matthiaskrgr self-assigned this Nov 14, 2020
bors added a commit that referenced this issue Nov 29, 2020
add `internal-lints` feature to enable clippys internal lints (off by default)

This PR moves the internal lint tests into a new subdirectory (I couldn't find a different way to compile-time-conditionally exclude them from compiletest) and only builds and tests internal lints if the `internal-lints` feature is enabled.

Fixes #6306

changelog: put internal lints behind a feature ("internal-lints")
bors added a commit that referenced this issue Nov 30, 2020
add `internal-lints` feature to enable clippys internal lints (off by default)

This PR moves the internal lint tests into a new subdirectory (I couldn't find a different way to compile-time-conditionally exclude them from compiletest) and only builds and tests internal lints if the `internal-lints` feature is enabled.

Fixes #6306

changelog: put internal lints behind a feature ("internal-lints")
@bors bors closed this as completed in c3db082 Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant