Skip to content

Update deprecated to use the attribute template #1891

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 6 commits into
base: master
Choose a base branch
from

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Jun 30, 2025

New rules:

  • attributes.diagnostics.deprecated.duplicates
  • attributes.diagnostics.deprecated.behavior
  • attributes.diagnostics.deprecated.generic-message
  • attributes.diagnostics.deprecated.message
  • attributes.diagnostics.deprecated.fields
  • attributes.diagnostics.deprecated.containers

Renamed rules:

  • attributes.diagnostic.deprecated.allowed-positions is now attributes.diagnostics.deprecated.allowed-positions (fixed typo)

ehuss added 6 commits June 27, 2025 14:45
This rewords the intro to be more general, as the details will be
included in separate rules.

This also moves the example into the intro.
Looking at the RFC, it doesn't seem like it offers any particular
insight or motivation that isn't already clear from what the attribute
does.

We still need a policy for how we refer to historical information like
this, but generally I'd lean away from it.
This is somewhat separate behavior, and I think it helps to discuss it
separately.
This updates it to use the attribute template format, and to split the
behaviors of the different forms into different rules so they can be
referenced.
@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