Use the correct export kind for __rust_alloc_error_handler_should_panic by dpaoliello · Pull Request #143260 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation5 Commits1 Checks10 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

@dpaoliello

Fixes #143253

__rust_alloc_error_handler_should_panic is a static but was being exported as a function.

For most targets this doesn't matter, but Arm64EC Windows uses different decorations for exported variables vs functions, hence it fails to link when -Z oom=abort is enabled.

Fix is to export the symbol as data.

r? @bjorn3

@dpaoliello

@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

Jun 30, 2025

@rustbot

Some changes occurred in compiler/rustc_codegen_ssa

cc @WaffleLapkin

@bjorn3

@bors

📌 Commit c073286 has been approved by bjorn3

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Jul 1, 2025

jhpratt added a commit to jhpratt/rust that referenced this pull request

Jul 1, 2025

@jhpratt

Use the correct export kind for __rust_alloc_error_handler_should_panic

Fixes rust-lang#143253

__rust_alloc_error_handler_should_panic is a static but was being exported as a function.

For most targets this doesn't matter, but Arm64EC Windows uses different decorations for exported variables vs functions, hence it fails to link when -Z oom=abort is enabled.

Fix is to export the symbol as data.

r? @bjorn3

bors added a commit that referenced this pull request

Jul 2, 2025

@bors

Rollup of 12 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

jhpratt added a commit to jhpratt/rust that referenced this pull request

Jul 2, 2025

@jhpratt

Use the correct export kind for __rust_alloc_error_handler_should_panic

Fixes rust-lang#143253

__rust_alloc_error_handler_should_panic is a static but was being exported as a function.

For most targets this doesn't matter, but Arm64EC Windows uses different decorations for exported variables vs functions, hence it fails to link when -Z oom=abort is enabled.

Fix is to export the symbol as data.

r? @bjorn3

bors added a commit that referenced this pull request

Jul 2, 2025

@bors

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

jhpratt added a commit to jhpratt/rust that referenced this pull request

Jul 2, 2025

@jhpratt

Use the correct export kind for __rust_alloc_error_handler_should_panic

Fixes rust-lang#143253

__rust_alloc_error_handler_should_panic is a static but was being exported as a function.

For most targets this doesn't matter, but Arm64EC Windows uses different decorations for exported variables vs functions, hence it fails to link when -Z oom=abort is enabled.

Fix is to export the symbol as data.

r? @bjorn3

bors added a commit that referenced this pull request

Jul 2, 2025

@bors

Rollup of 12 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Jul 2, 2025

@matthiaskrgr

Use the correct export kind for __rust_alloc_error_handler_should_panic

Fixes rust-lang#143253

__rust_alloc_error_handler_should_panic is a static but was being exported as a function.

For most targets this doesn't matter, but Arm64EC Windows uses different decorations for exported variables vs functions, hence it fails to link when -Z oom=abort is enabled.

Fix is to export the symbol as data.

r? @bjorn3

bors added a commit that referenced this pull request

Jul 2, 2025

@bors

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Jul 2, 2025

@matthiaskrgr

Use the correct export kind for __rust_alloc_error_handler_should_panic

Fixes rust-lang#143253

__rust_alloc_error_handler_should_panic is a static but was being exported as a function.

For most targets this doesn't matter, but Arm64EC Windows uses different decorations for exported variables vs functions, hence it fails to link when -Z oom=abort is enabled.

Fix is to export the symbol as data.

r? @bjorn3

bors added a commit that referenced this pull request

Jul 2, 2025

@bors

Rollup of 10 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

@matthiaskrgr

@bors bors added S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

labels

Jul 2, 2025

@dpaoliello

I'm going to switch approaches and convert __rust_alloc_error_handler_should_panic to be a function instead.

Labels

S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.