Skip to content

[stable 1.96 backport] Backport portable-atomics to 1.96 branch#17134

Merged
ehuss merged 6 commits into
rust-lang:rust-1.96.0from
Mark-Simulacrum:stable-portable-atomic
Jun 24, 2026
Merged

[stable 1.96 backport] Backport portable-atomics to 1.96 branch#17134
ehuss merged 6 commits into
rust-lang:rust-1.96.0from
Mark-Simulacrum:stable-portable-atomic

Conversation

@Mark-Simulacrum

Copy link
Copy Markdown
Member

This backports #16906 (all commits) to the 1.96 branch, which is needed for compilation to certain tier 2 platforms; see failure here: rust-lang/rust#158331 (comment)

`std::sync::atomic::{AtomicU64, AtomicI64}`
are not available on some tier 2 32-bit platforms.

Replace them with `portable_atomic`,
which is already a transitive dependency via `gix` and `jiff`

See

* https://triage.rust-lang.org/gha-logs/rust-lang/rust/71938527712
* rust-lang/rust#155470 (comment)
This is a partial revert of 1d35833

We also downgrade to `Ordering::Relaxed`
since `ignore::WalkParallel` joins threads
(while it is implementation details,
it should otherwise a bug to whatever used its result after)
`tracing-chrome@0.7.2` switched to `AtomicUsize`
so the cfg gate was unnecessary.
hence enabling our internal profiling support on all platforms.

See <https://diff.rs/tracing-chrome/0.7.1/0.7.2/src%2Flib.rs>
We added this configuration but forgot to enabled it in lints

See rust-lang#12988
@rustbot rustbot added A-cli Area: Command-line interface, option parsing, etc. A-infrastructure Area: infrastructure around the cargo repo, ci, releases, etc. A-networking Area: networking issues, curl, etc. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 24, 2026
@rustbot

rustbot commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

r? @epage

rustbot has assigned @epage.
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: @ehuss, @epage, @weihanglo
  • @ehuss, @epage, @weihanglo expanded to ehuss, epage, weihanglo
  • Random selection from ehuss, epage, weihanglo

@rustbot

rustbot commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

⚠️ Warning ⚠️

  • Pull requests are usually filed against the master branch for this repo, but this one is against rust-1.96.0. Please double check that you specified the right target!

@ehuss ehuss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Mark-Simulacrum

Copy link
Copy Markdown
Member Author

I pushed a bump of the cargo-util version, happy to drop that if we want to override the merge instead.

@Mark-Simulacrum Mark-Simulacrum force-pushed the stable-portable-atomic branch from c6bf6ea to 8e511d7 Compare June 24, 2026 12:00
@ehuss

ehuss commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

That's good, I was just looking at that.

@ehuss ehuss enabled auto-merge June 24, 2026 12:12
@ehuss ehuss merged commit d71ac4c into rust-lang:rust-1.96.0 Jun 24, 2026
31 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 24, 2026
@Mark-Simulacrum Mark-Simulacrum deleted the stable-portable-atomic branch June 24, 2026 12:34
@rustbot rustbot added this to the 1.96.1 milestone Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area: Command-line interface, option parsing, etc. A-infrastructure Area: infrastructure around the cargo repo, ci, releases, etc. A-networking Area: networking issues, curl, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants