rust-lang / rust-lang/rust

Enable `outline-atomics` by default on aarch64 platforms without LSE

Open
#150,455 3 comments 0 reactions 1 assignee View on GitHub

@yash-rana0101 is already working on this.

Since Feb 20, 2026.

A-target-feature C-enhancement E-help-wanted E-medium T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Since https://github.com/rust-lang/rust/pull/144938 and https://github.com/rust-lang/rust/pull/149633, most Aarch64 platforms that don't have LSE in the baseline enable the +outline-atomics target feature. We keep getting more targets that fall into this boat, however, so it's probably worth making this the default.

I think we can probably just unconditionally enable outline-atomics on all aarch64 targets without checking LSE, since LLVM should ignore it if +lse is also set/implied.

Note that Apple targets would need an explicit disable until https://github.com/rust-lang/rust/issues/149634 is fixed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.