Skip to content

Conversation

@ehuss
Copy link
Contributor

@ehuss ehuss commented Jun 30, 2025

New rules:

  • macro.decl.scope.macro_export.syntax
  • macro.decl.scope.macro_export.allowed-positions
  • macro.decl.scope.macro_export.duplicates
  • macro.decl.scope.macro_export.path-based
  • macro.decl.scope.macro_export.macro_use

Renamed rules:

  • macro.decl.scope.path is now macro.decl.scope.macro_export
  • macro.decl.scope.path.intro is now macro.decl.scope.macro_export.intro
  • macro.decl.scope.path.export is now macro.decl.scope.macro_export.export
  • macro.decl.hygiene.local_inner_macros is now macro.decl.scope.macro_export.local_inner_macros

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Jun 30, 2025
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

ehuss and others added 10 commits October 20, 2025 03:37
This renames the section title to "The `macro_export` attribute" to
follow the attribute template. Although I like the old title, since it
describes what it does, I would prefer to not make exceptions and stay
consistent.
Rewording to follow the template, and to try to be a little clearer.
This adds more rules to be a little more explicit about the behavior,
along with some examples.
This moves it to the macro_export section (since it is part of that
macro).

There are slight wording differences. One new addition is to clarify
that it only works for single-segment paths.
In addition to some editorial clean-ups, let's add an example
demonstrating the difference between textual-only scope and path-based
resolution, and let's move some verbiage about intended use into an
admonition.
@rustbot
Copy link
Collaborator

rustbot commented Oct 20, 2025

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.

@traviscross traviscross added this pull request to the merge queue Oct 21, 2025
Merged via the queue into rust-lang:master with commit 182f2c6 Oct 21, 2025
5 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Oct 21, 2025
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.

3 participants