Skip to content

Update diagnostics to use the attribute template #1890

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Jun 30, 2025

New rules:

  • attributes.diagnostics.lint.intro
  • attributes.diagnostics.lint.syntax
  • attributes.diagnostics.lint.allowed-positions
  • attributes.diagnostics.lint.duplicates

Renamed rules:

  • attributes.diagnostics.expect.intro is now attributes.diagnostics.expect.behavior

ehuss added 10 commits June 27, 2025 14:45
This is intended to be a general intro for all of the lint check
attributes, so name them here.
This adds the corresponding rules, and reworks a little to be explicit
about the syntax.
The style we have generally settled on is to *not* surround the name
of the attribute with `#[]`.
I'd like to avoid "intro" rules that are the core definition of a thing.
This moves the note so that it isn't dangling at the bottom of the
section. I generally would like to avoid these, since it isn't clear if
the note is tied to the previous rule, or the entire section. This seems
to fit with this rule better, anyways.
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: The marked PR is awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants