Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Allow unknown lints#137

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

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

Conversation

@tcharding
Copy link
Copy Markdown
Member

@tcharding tcharding commented Oct 28, 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).

If this PR is deemed a good solution we can do the same in rust-secp256k1 and rust-bitcoin.

@apoelstra
Copy link
Copy Markdown
Member

concept ACK from me.

IIRC in Rust 1.22 we would get actual errors when referencing unknown lints ... I guess 1.29 is smarter than that?

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).
@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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants