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 lint errors with Rust 1.78 beta #184

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Fix lint errors with Rust 1.78 beta #184

merged 1 commit into from
Mar 21, 2024

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Mar 21, 2024

Fixes this lint error I get locally with Rust 1.78 beta:

error: lint group `pedantic` has the same priority (0) as a lint
  --> Cargo.toml:15:1
   |
15 | pedantic = "warn"
   | ^^^^^^^^   ------ has an implicit priority of 0
16 | unwrap_used = "warn"
   | ----------- has the same priority as this lint
   |
   = note: the order of the lints in the table is ignored by Cargo
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lint_groups_priority
   = note: `#[deny(clippy::lint_groups_priority)]` on by default
help: to have lints override the group set `pedantic` to a lower priority
   |
15 | pedantic = { level = "warn", priority = -1 }
   |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

See:
https://rust-lang.github.io/rust-clippy/master/index.html#/lint_groups_priority
rust-lang/rust-clippy#11832
rust-lang/cargo#12918
rust-lang/cargo#13565

GUS-W-15303120.

Fixes this lint error I get locally with Rust 1.78 beta:

```
error: lint group `pedantic` has the same priority (0) as a lint
  --> Cargo.toml:15:1
   |
15 | pedantic = "warn"
   | ^^^^^^^^   ------ has an implicit priority of 0
16 | unwrap_used = "warn"
   | ----------- has the same priority as this lint
   |
   = note: the order of the lints in the table is ignored by Cargo
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lint_groups_priority
   = note: `#[deny(clippy::lint_groups_priority)]` on by default
help: to have lints override the group set `pedantic` to a lower priority
   |
15 | pedantic = { level = "warn", priority = -1 }
   |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
@edmorley edmorley added the skip changelog Skip the check-changelog check label Mar 21, 2024
@edmorley edmorley self-assigned this Mar 21, 2024
@edmorley edmorley enabled auto-merge (squash) March 21, 2024 14:11
@edmorley edmorley requested a review from a team March 21, 2024 14:13
@edmorley edmorley merged commit 25d6e7a into main Mar 21, 2024
6 checks passed
@edmorley edmorley deleted the rust-1.78 branch March 21, 2024 14:15
edmorley added a commit to heroku/buildpacks-deb-packages that referenced this pull request Jul 16, 2024
With newer versions of Rust, Clippy was failing on `main` with:

```
error: lint group `pedantic` has the same priority (0) as a lint
  --> Cargo.toml:23:1
   |
23 | pedantic = "warn"
   | ^^^^^^^^   ------ has an implicit priority of 0
24 | unwrap_used = "warn"
   | ----------- has the same priority as this lint
   |
   = note: the order of the lints in the table is ignored by Cargo
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lint_groups_priority
   = note: `#[deny(clippy::lint_groups_priority)]` on by default
help: to have lints override the group set `pedantic` to a lower priority
   |
23 | pedantic = { level = "warn", priority = -1 }
   |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

eg:
https://github.com/heroku/buildpacks-apt/actions/runs/9955852891/job/27504486097?pr=32#step:5:188

See also:
heroku/buildpacks-python#184
@edmorley edmorley added the internal Internal (non-user facing) buildpack changes label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal (non-user facing) buildpack changes skip changelog Skip the check-changelog check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants