Update std_detect support for AArch64 Darwin #163516
Some changes occurred in std_detect
cc @Amanieu, @folkertdev, @sayantn
r? @Darksonn
rustbot has assigned @Darksonn.
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
<details>
<summary>Why was this reviewer chosen?</summary>
The reviewer was selected based on:
libslibs expanded to 12 candidatesDarksonn, JohnTitor, Mark-Simulacrum, clarfonthey, jhpratt</details>
This doesn't match the Linux check:
Note that the fp8 feature was changed in LLVM to depend on just neon rather than FeatureFAMINMAX, FeatureLUT, FeatureBF16 in https://github.com/llvm/llvm-project/pull/125874. But rustc still lists those three features. Should this also be updated to match LLVM?
We have no idea; who would be the best person to consult for this?
Hopefully one of the people cc'd above by the bot can help.
cc @davidtwco @adamgemmell (target maintainers), but seems to me that we should follow LLVM here?
Unfortunately it's a breaking change to do so as this example would require an unsafe context on the call:
#[target_feature(enable="fp8")]
fn fp8() {
bf16();
}
#[target_feature(enable="bf16")]
fn bf16() {}
Unfortunately it's a breaking change to do so as this example would require an unsafe context on the call
Would that be potentially solvable by use of a new feature (fp8cvt, name subject to bikeshedding) to represent the actual FEAT_FP8 and then redefining fp8 retroactively to imply fp8cvt+lut+bf16+faminmax?
Or is it okay to do this breaking change as fp8 is currently unstable anyway?
Oh, if fp8 is still unstable then we can just make that change :)
If we wanted to make that change, where in the Rust repo would we do that?
EDIT: Figured it out.
Target features are being changed; ensure all ABI effects are being accounted for
cc @RalfJung
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.
Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.
Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.
Approved these changes.
@bors r+ rollup
:pushpin: Commit c1cf18705fa49357a66a87020c6050405b2243c4 has been approved by davidtwco
It is now in the queue for this repository.
davidtwco
pthariensflame
This makes it current as of mid-October, 2026. This also relaxes the requirements on FEAT_FP8 to just be NEON/ASIMD, reflecting a similar relaxation already done in LLVM.
No part of this was done using LLMs in any capacity.
<!-- homu-ignore:start -->
<!--
Please read our [LLM policy] before opening a PR,
If you used an LLM to generate any part of this PR, including the PR description, please disclose that according to our [guidelines][disclosure guidelines].
LLM contributions are not banned, but are held to a higher standard of review and correctness.
[LLM policy]: https://forge.rust-lang.org/policies/llm-usage.html
[disclosure guidelines]: https://rustc-dev-guide.rust-lang.org/llm-guidance/writing.html#disclosure-guidelines
If this PR is related to an unstable feature or an otherwise tracked effort,
please link to the relevant tracking issue here. If you don't know of a related
tracking issue or there are none, feel free to ignore this.
This PR will get automatically assigned to a reviewer. In case you would like
a specific user to review your work, you can assign it to them by using
r? <reviewer name>
When merged, your PR's description becomes part of the commit message of a merge commit.
If you do not want certain parts of it (such as your LLM disclosure) to show up in the permanent git history,
surround them with a pair of HTML comments containing
homu-ignore:startandhomu-ignore:end.-->
<!-- homu-ignore:end -->