Skip to content

Reject #[no_mangle] and #[link_name] on EII declarations#156871

Open
AsakuraMizu wants to merge 1 commit into
rust-lang:mainfrom
AsakuraMizu:eii-forbidden-attr
Open

Reject #[no_mangle] and #[link_name] on EII declarations#156871
AsakuraMizu wants to merge 1 commit into
rust-lang:mainfrom
AsakuraMizu:eii-forbidden-attr

Conversation

@AsakuraMizu
Copy link
Copy Markdown
Contributor

Tracking issue: #125418

The issue said "Check no_mangle on EIIs is rejected properly". I believe link_name should also be rejected.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 24, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 24, 2026

r? @davidtwco

rustbot has assigned @davidtwco.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 73 candidates
  • Random selection from 18 candidates

@bjorn3
Copy link
Copy Markdown
Member

bjorn3 commented May 24, 2026

I think it should also be forbidden on implementations of an EII.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants