Skip to content

Fix rule IDs not following the header hierarchy - #2343

Merged
traviscross merged 1 commit into
masterfrom
TC/fix-rule-ids-not-following-header-hierarchy
Aug 30, 2026
Merged

Fix rule IDs not following the header hierarchy#2343
traviscross merged 1 commit into
masterfrom
TC/fix-rule-ids-not-following-header-hierarchy

Conversation

@traviscross

Copy link
Copy Markdown
Contributor

For rule identifiers, we follow the header hierarchy. Where there are related rules but no header, we use a dash rather than a dot as the separator. There were some rule identifiers that used a dot instead. Aside from consistency, this is a problem for how we cite rules in rustc tests. We lint against citations of interior rules; misusing dot separation creates interior rules that still need to be cited.

Let's fix these.

For rule identifiers, we follow the header hierarchy.  Where there are
related rules but no header, we use a dash rather than a dot as the
separator.  There were some rule identifiers that used a dot instead.
Aside from consistency, this is a problem for how we cite rules in
`rustc` tests.  We lint against citations of interior rules; misusing
dot separation creates interior rules that still need to be cited.

Let's fix these.
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Aug 30, 2026
@traviscross
traviscross enabled auto-merge August 30, 2026 07:52
@traviscross
traviscross added this pull request to the merge queue Aug 30, 2026
Merged via the queue into master with commit f491599 Aug 30, 2026
7 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Aug 30, 2026
@traviscross
traviscross deleted the TC/fix-rule-ids-not-following-header-hierarchy branch August 30, 2026 07:56
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.

2 participants