Skip to content

Fix lints duplications in unknown_attribute and renamed_builtin_attr#17164

Open
Gri-ffin wants to merge 1 commit into
rust-lang:masterfrom
Gri-ffin:dedup-clippy-attributes
Open

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

Conversation

@Gri-ffin
Copy link
Copy Markdown
Contributor

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

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
Copy link
Copy Markdown
Collaborator

rustbot commented Jun 5, 2026

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
Copy link
Copy Markdown
Collaborator

rustbot commented Jun 6, 2026

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants