Skip to content

Do not promote extern statics#2302

Open
sjwang05 wants to merge 1 commit into
rust-lang:masterfrom
sjwang05:document-extern-static-promotion
Open

Do not promote extern statics#2302
sjwang05 wants to merge 1 commit into
rust-lang:masterfrom
sjwang05:document-extern-static-promotion

Conversation

@sjwang05

Copy link
Copy Markdown

Reference update for rust-lang/rust#157641: a borrow of an extern static cannot be promoted, even when the reference is never read from.

Reference update for rust-lang/rust#157641: a borrow of an extern
static is never eligible for constant promotion, even when the
reference itself is never read from.
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Jun 30, 2026
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