Skip to content

Fix lints duplications in unknown_attribute and renamed_builtin_attr - #17164

Merged
llogiq merged 1 commit into
rust-lang:masterfrom
Gri-ffin:dedup-clippy-attributes
Jun 7, 2026
Merged

Fix lints duplications in unknown_attribute and renamed_builtin_attr#17164
llogiq merged 1 commit into
rust-lang:masterfrom
Gri-ffin:dedup-clippy-attributes

Conversation

@Gri-ffin

@Gri-ffin Gri-ffin commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Related to #12379

I moved the linting logic from get_builtin_attr into a dedicated check_clippy_attr
function called once per attribute during EarlyLintPass.

Initially I've put it in LateLintPass but the early pass seemed like the more appropriate place?

changelog: fix duplicate diagnostics in unknown_attribute and renamed_builtin_attr

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 5, 2026
@rustbot

rustbot commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

r? @llogiq

rustbot has assigned @llogiq.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: 8 candidates
  • 8 candidates expanded to 8 candidates
  • Random selection from Jarcho, dswij, llogiq, samueltardieu

@rustbot

This comment has been minimized.

remove Zdeduplicate-diagnostics flag

remove unused sess from `get_builtin_attr`

move checking to lint early pass

Fix duplicate diagnostics for `unknown_attribute` and `renamed_builtin_attr`
@Gri-ffin
Gri-ffin force-pushed the dedup-clippy-attributes branch from 641bbc6 to f69a253 Compare June 6, 2026 09:34
@rustbot

rustbot commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@llogiq

llogiq commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

LGTM. Thanks!

@llogiq
llogiq added this pull request to the merge queue Jun 7, 2026
Merged via the queue into rust-lang:master with commit 12f05ee Jun 7, 2026
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 7, 2026
@Gri-ffin
Gri-ffin deleted the dedup-clippy-attributes branch June 7, 2026 10:18
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.

3 participants