Skip to content

Update no_mangle to use the attribute template#1904

Open
ehuss wants to merge 9 commits into
rust-lang:masterfrom
ehuss:no_mangle
Open

Update no_mangle to use the attribute template#1904
ehuss wants to merge 9 commits into
rust-lang:masterfrom
ehuss:no_mangle

Conversation

@ehuss
Copy link
Copy Markdown
Contributor

@ehuss ehuss commented Jun 30, 2025

New rules:

  • abi.no_mangle.syntax
  • abi.no_mangle.allowed-positions
  • abi.no_mangle.duplicates
  • abi.no_mangle.export_name
  • abi.no_mangle.ascii-only
  • abi.no_mangle.generic

@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.

ehuss added 9 commits May 26, 2026 12:57
This moves it below to match the template of having behavioral rules
after the syntax.
This is to match the template order.
It doesn't really work with any item, it is functions and statics.
This specifies the conflict between no_mangle and export_name.
This is a restriction that wasn't previously documented.
More closely align with the template, and some minor word tweaks.
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 26, 2026

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.

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