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

fix: Remove strict linting from generated code #4858

Merged
merged 1 commit into from Apr 25, 2023

Conversation

hds
Copy link

@hds hds commented Apr 25, 2023

The #[deny(correctness)] attribute is inside some generated code (such
as the Subcommand derive macro). As of Rust 1.69.0, this is triggering
a clippy error in some uses. Due to the placement of the deny, it is
not possible for a user of clap to override it.

This change removes all the instances of this deny attribute. The same
was done on the master branch in #4739.

Fixes: #4857

@hds hds changed the title fix: remove strict linting from generated code fix: Remove strict linting from generated code Apr 25, 2023
@hds
Copy link
Author

hds commented Apr 25, 2023

@epage It seems like there are some unrelated test and doc checks that are failing. Perhaps this is too complicated and I should focus on upgrading to clap 4? (-;

@epage
Copy link
Member

epage commented Apr 25, 2023

If you rebase, most of the problems should go away

The `#[deny(correctness)]` attribute is inside some generated code (such
as the `Subcommand` derive macro). As of Rust 1.69.0, this is triggering
a clippy error in some uses. Due to the placement of the `deny`, it is
not possible for a user of clap to override it.

This change removes all the instances of this `deny` attribute. The same
was done on the `master` branch in clap-rs#4739.

Fixes: clap-rs#4857
@hds
Copy link
Author

hds commented Apr 25, 2023

That's fixed most of them, just seem to be having some issues with the docs.

@epage
Copy link
Member

epage commented Apr 25, 2023

Yeah, I've not reproduced it locally and its a warning, turned error, so it shouldn't actually block anything, so I'm willing to go forward with this

@epage epage merged commit b95af64 into clap-rs:v3-master Apr 25, 2023
19 of 20 checks passed
@epage
Copy link
Member

epage commented Apr 25, 2023

Released v3.2.24

@hds
Copy link
Author

hds commented Apr 25, 2023

Thank you very much @epage!

@hds hds deleted the v3-no-deny-correctness branch April 25, 2023 20:42
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.

None yet

2 participants