Skip to content

Allow unknown lints#337

Closed
tcharding wants to merge 1 commit intorust-bitcoin:masterfrom
tcharding:unknown-lints
Closed

Allow unknown lints#337
tcharding wants to merge 1 commit intorust-bitcoin:masterfrom
tcharding:unknown-lints

Conversation

@tcharding
Copy link
Copy Markdown
Member

@tcharding tcharding commented Nov 3, 2021

We support many versions of rustc by design, this puts us in the following predicament:

  1. Linting with a newer version of clippy throws a warning for a newly introduced default lint.
  2. In order to allow the lint we must use the lint by name but this lint does not exist in earlier versions of clippy, so we get a warning unknown lint when linting with the earlier version.

We want to have our cake and eat it too, we can do this by allowing unknown lints. Doing so enables (1) while preventing (2).

The change in this PR has also been submitted in bitcoin_hashes, for brevity it is likely easier if we discuss the failings/merits of this work in a single place on that PR. Thanks.

We support many versions of rustc by design, this puts us in the
following predicament:

1. Linting with a newer version of clippy throws a warning for a newly
introduced default lint.
2. In order to allow the lint we must use the lint by name but this lint
does not exist in earlier versions of clippy, so we get a warning
`unknown lint` when linting with the earlier version.

We want to have our cake and eat it too, we can do this by allowing
unknown lints. Doing so enables (1) while preventing (2).
@apoelstra
Copy link
Copy Markdown
Member

concept ACK. Will merge once we have more than one ACK on the bitcoin-hashes PR.

@tcharding
Copy link
Copy Markdown
Member Author

Based off comments in the same PR as this on rust-bitcoin, this PR is not useful. Please excuse the noise.

@tcharding tcharding closed this Nov 5, 2021
@tcharding tcharding deleted the unknown-lints branch March 24, 2022 01:37
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.

2 participants