Skip to content

Windows TLS: avoid atexit call in Miri#157417

Open
RalfJung wants to merge 1 commit into
rust-lang:mainfrom
RalfJung:windows-tls-miri
Open

Windows TLS: avoid atexit call in Miri#157417
RalfJung wants to merge 1 commit into
rust-lang:mainfrom
RalfJung:windows-tls-miri

Conversation

@RalfJung
Copy link
Copy Markdown
Member

@RalfJung RalfJung commented Jun 4, 2026

This was added in #148799. I did not realize that we're actually falsely pretending that atexit worked, I thought we'd always return an error. Having it pretend to work when really it did nothing seems like a bad idea so let's just skip that call under cfg(miri).

r? @ChrisDenton
Cc @ohadravid

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Jun 4, 2026

The Miri subtree was changed

cc @rust-lang/miri

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

rustbot commented Jun 4, 2026

ChrisDenton is not on the review rotation at the moment.
They may take a while to respond.

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-libs Relevant to the library 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