-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use cfg!(target_feature)
for static ARM/AARCH64 feature detection.
#1540
Conversation
44463ff
to
74d36b9
Compare
cfg!(target_feature)
for static AARCH64 feature detection.cfg!(target_feature)
for static ARM/AARCH64 feature detection.
Codecov Report
@@ Coverage Diff @@
## main #1540 +/- ##
==========================================
- Coverage 96.02% 96.01% -0.01%
==========================================
Files 133 133
Lines 19913 19913
Branches 199 199
==========================================
- Hits 19121 19120 -1
Misses 754 754
- Partials 38 39 +1
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
74d36b9
to
2a383a3
Compare
d1245ff
to
e7c214a
Compare
b2d2d58
to
a74a1be
Compare
); | ||
// MSRV: Enforce 1.61.0 on some aarch64-* targets (aarch64-apple-*, in particular) prior to. Earlier | ||
// versions of Rust before did not report the AAarch64 CPU features correctly for these targets. | ||
// Cargo.toml specifies `rust-version` but versions before Rust 1.56 don't know about it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified that cargo test +1.60.0 --target=aarch64-apple-darwin
fails due to this, and cargo test +1.61.0 --target=aarch64-apple-darwin
passes.
a74a1be
to
11cdbda
Compare
11cdbda
to
df29dd3
Compare
Our MSRV supports
if
in const expressions. Implement a workaround for buggy detection on older versions of Rust.