Skip to content

fix: deduplicate warnings lint in completion#22059

Closed
JasmineLCY wants to merge 1 commit intorust-lang:masterfrom
JasmineLCY:fix/duplicate-warnings-lint-completion
Closed

fix: deduplicate warnings lint in completion#22059
JasmineLCY wants to merge 1 commit intorust-lang:masterfrom
JasmineLCY:fix/duplicate-warnings-lint-completion

Conversation

@JasmineLCY
Copy link
Copy Markdown

@JasmineLCY JasmineLCY commented Apr 16, 2026

The warnings lint appeared twice in completions because it exists as both an individual lint and a lint group. The codegen already skips warnings when building DEFAULT_LINT_GROUPS, but was missing the same skip when adding lint groups to DEFAULT_LINTS.

This adds the same if name == "warnings" { continue; } guard to the lint-groups-to-DEFAULT_LINTS loop, matching the existing pattern for DEFAULT_LINT_GROUPS.

Closes #21943.

Drafted with AI assistance, reviewed and tested by me.

The `warnings` lint appeared in both individual lints and lint groups,
causing it to show up twice in completions. Skip `warnings` when adding
lint groups to `DEFAULT_LINTS`, matching the existing skip in
`DEFAULT_LINT_GROUPS`.

Closes rust-lang#21943
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 16, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 16, 2026

⚠️ Warning ⚠️

  • There are uncanonicalized issue links (such as #123) in the commit messages of the following commits.
    Please add the organization and repository before the issue number (like so rust-lang/rust#123) to avoid issues with subtree.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 20, 2026

☔ The latest upstream changes (possibly #22054) made this pull request unmergeable. Please resolve the merge conflicts.

@ShoyuVanilla
Copy link
Copy Markdown
Member

Closing this as #22054 has fixed the related issue and it was opened before this and is a bit more desirable fix

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 20, 2026
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.

Duplicate warnings lint complete

3 participants