Stabilise is_aarch64_feature_detected! under simd_aarch64 feature #90271
Stabilise is_aarch64_feature_detected! under simd_aarch64 feature #90271bors merged 2 commits intorust-lang:masterfrom
is_aarch64_feature_detected! under simd_aarch64 feature #90271Conversation
|
CI should fail until the stdarch PR is committed and updated here |
|
We can have different |
|
☔ The latest upstream changes (presumably #92587) made this pull request unmergeable. Please resolve the merge conflicts. |
5fdd506 to
d9e776b
Compare
library/std/tests/run-time-detect.rs
Outdated
There was a problem hiding this comment.
Should this be removed for aarch64 as well? You might need to put this behind cfg(bootstrap) so the stage0 compiler still accepts it.
There was a problem hiding this comment.
True - I mistakenly removed it when making pauth temporarily unstable again.
There was a problem hiding this comment.
Actually, it does need to remain there while pauth is unstable. I'll fix it up when rust-lang/stdarch#1259 is merged, and update the submodule at the same time.
d9e776b to
93b5bfb
Compare
|
@bors r+ rollup=never |
|
📌 Commit 93b5bfb has been approved by |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (e789f3a): comparison url. Summary: This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
|
Just a heads up, the stabilization machinery may cause confusion here. The docs say this is still unstable: https://doc.rust-lang.org/nightly/std/arch/macro.is_aarch64_feature_detected.html This is because the https://doc.rust-lang.org/ docs are built for x86_64. For some reason, using the macro from an incompatible target raises an unstable error. For example, using is_aarch64_feature_detected on x86_64 will display: Is that intentional? |
Fix documentation for is_X_feature_detected! These are now properly documented for all architectures and the stability attributes in the docs are now correctly displayed. This addresses this comment by `@ehuss:` rust-lang#90271 (comment) cc `@adamgemmell`
Fix documentation for is_X_feature_detected! These are now properly documented for all architectures and the stability attributes in the docs are now correctly displayed. This addresses this comment by `@ehuss:` rust-lang#90271 (comment) cc `@adamgemmell`
Initial implementation, looking for feedback on the approach here. #86941
One point I noticed was that I haven't seen different "since" versions for the same feature - does this mean that other features can't be added to to the
simd_aarch64feature once this is in stable? If so it might need a more specific name.r? @Amanieu