Skip to content

Improve unexpected_cfgs lint when their is no value expected #94561

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 1 commit into from
Mar 5, 2022

Conversation

Urgau
Copy link
Member

@Urgau Urgau commented Mar 3, 2022

This pull-request improve the unexpected_cfgs when their is no value expected by suggesting to remove the value.

I also took the liberty to special case it for feature as it seems wrong to suggest to remove the value when the problem is most probably the absence of value(s) and also the fact that it doesn't make sense to only have feature without a value.

r? @petrochenkov

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Mar 3, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 3, 2022
@petrochenkov
Copy link
Contributor

r=me with formatting fixed #94561 (review)

@petrochenkov petrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 4, 2022
@Urgau Urgau force-pushed the check-cfg-lint-help-remove branch from 456496c to 3be6ccd Compare March 4, 2022 10:30
@Urgau
Copy link
Member Author

Urgau commented Mar 4, 2022

CI pass but blocked on #94362 being merged first as some output files will change.

@petrochenkov
Copy link
Contributor

#94362 has been merged.

@Urgau Urgau force-pushed the check-cfg-lint-help-remove branch from 3be6ccd to 92544f4 Compare March 5, 2022 11:11
@petrochenkov
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Mar 5, 2022

📌 Commit 92544f4 has been approved by petrochenkov

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 5, 2022
@bors
Copy link
Collaborator

bors commented Mar 5, 2022

⌛ Testing commit 92544f4 with merge c8a49fc...

@bors
Copy link
Collaborator

bors commented Mar 5, 2022

☀️ Test successful - checks-actions
Approved by: petrochenkov
Pushing c8a49fc to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 5, 2022
@bors bors merged commit c8a49fc into rust-lang:master Mar 5, 2022
@rustbot rustbot added this to the 1.61.0 milestone Mar 5, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (c8a49fc): comparison url.

Summary: This benchmark run did not return any relevant results. 1 results were found to be statistically significant but too small to be relevant.

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

@Urgau Urgau deleted the check-cfg-lint-help-remove branch May 5, 2023 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants