Skip to content

Deprecate maybe_misused_cfg and mismatched_target_os #12875

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
Jun 3, 2024

Conversation

y21
Copy link
Member

@y21 y21 commented Jun 1, 2024

All cases that these two lints would catch are now caught by cargo/rustc's own check-cfg feature.

This was previously discussed on zulip: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Deprecate.20maybe_misused_cfg.20and.20mismatched_target_os

For the most part, this PR was automated with cargo dev deprecate

r? @flip1995 cc @Urgau

changelog: deprecate [maybe_misused_cfg] and [mismatched_target_os]

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 1, 2024
//~^ ERROR: no need to put clippy lints behind a `clippy` cfg
#![cfg_attr(clippy, deny(clippy::non_minimal_cfg, clippy::maybe_misused_cfg))]
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'm not sure exactly why/how that lint was used here, so I just removed it to avoid any "this lint has been deprecated" warnings

@flip1995
Copy link
Member

flip1995 commented Jun 3, 2024

Thanks for doing this! I kept forgetting it...

@bors r+

@bors
Copy link
Contributor

bors commented Jun 3, 2024

📌 Commit f950961 has been approved by flip1995

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jun 3, 2024

⌛ Testing commit f950961 with merge 4f3180a...

@bors
Copy link
Contributor

bors commented Jun 3, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 4f3180a to master...

@bors bors merged commit 4f3180a into rust-lang:master Jun 3, 2024
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