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

clippy: fix on nightly toolchain #334

Merged
merged 2 commits into from
Jul 12, 2023
Merged

clippy: fix on nightly toolchain #334

merged 2 commits into from
Jul 12, 2023

Conversation

jsha
Copy link
Collaborator

@jsha jsha commented Jul 11, 2023

Right now on the nightly toolchain, clippy gives an error. This doesn't block merges because we mark the nightly clippy check as optional, and only require the clippy check for a specified toolchain version.

I've filed #333 to address the error. In this PR I disable that particular clippy lint and bump the required toolchain version to 1.73.0.

@jsha jsha requested a review from cpu July 11, 2023 18:23
Copy link
Member

@cpu cpu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix 👍

@jsha
Copy link
Collaborator Author

jsha commented Jul 11, 2023

In CI, was getting:

error: could not download nonexistent rust version `1.73.0-x86_64-unknown-linux-gnu`: could not download file from 'https://static.rust-lang.org/dist/rust-1.73.0-x86_64-unknown-linux-gnu.tar.gz.sha256' to '/home/runner/.rustup/tmp/ez9sp9x7zg6d3ws7_file': http request returned an unsuccessful status code: 404

I realized I pulled the latest version from my nightly toolchain locally, which of course is not a released version. Bumped it down to 1.72.0.

@jsha
Copy link
Collaborator Author

jsha commented Jul 11, 2023

Heh, and 1.71 is still in beta. Bumped it further down to 1.70. Also I realized we have the same fixed version for the cargo fmt check so I bumped that as well.

Add -A unknown-lints for required clippy version.
@jsha
Copy link
Collaborator Author

jsha commented Jul 11, 2023

Now that version 1.70.0 is running for the "required" clippy, I get this:

error: unknown lint: `clippy::arc_with_non_send_sync`
 --> src/lib.rs:5:10
  |
5 | #![allow(clippy::arc_with_non_send_sync)]
  |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `-D unknown-lints` implied by `-D warnings`

In the latest revision, I turn on -A unknown-lints for the required clippy (1.70.0) only. This allows unrecognized lints in the older clippy; but they will trigger an advisory error in the newer clippy (even though it won't block merging).

Copy link
Member

@cpu cpu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the latest revision, I turn on -A unknown-lints for the required clippy (1.70.0) only. This allows unrecognized lints in the older clippy; but they will trigger an advisory error in the newer clippy (even though it won't block merging).

Sounds like a reasonable workaround. Thanks for chasing this down.

@cpu cpu merged commit 4f977fb into main Jul 12, 2023
42 checks passed
@cpu cpu deleted the jsha/fix-clippy branch July 12, 2023 12:09
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

3 participants