Skip to content
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

Remove the aarch64 crypto target_feature #87729

Merged
merged 3 commits into from
Aug 4, 2021

Conversation

adamgemmell
Copy link
Contributor

The subfeatures aes or sha2 should be used instead.

This can't yet be done for ARM targets as some LLVM intrinsics still require crypto.

Also update the runtime feature detection tests in library/std to mirror the updates in stdarch. This also helps #86941

r? @Amanieu

@rust-highfive
Copy link
Collaborator

⚠️ Warning ⚠️

  • These commits modify submodules.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 3, 2021
@Amanieu
Copy link
Member

Amanieu commented Aug 3, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Aug 3, 2021

📌 Commit e817b50 has been approved by Amanieu

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 3, 2021
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Aug 3, 2021
…=Amanieu

Remove the aarch64 `crypto` target_feature

The subfeatures `aes` or `sha2` should be used instead.

This can't yet be done for ARM targets as some LLVM intrinsics still require `crypto`.

Also update the runtime feature detection tests in `library/std` to mirror the updates in `stdarch`. This also helps rust-lang#86941

r? `@Amanieu`
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 3, 2021
Rollup of 8 pull requests

Successful merges:

 - rust-lang#81797 (Add `core::stream::from_iter`)
 - rust-lang#87267 (Remove space after negative sign in Literal to_string)
 - rust-lang#87663 (Rustdoc accessibility: use an icon for the [-]/[+] controls)
 - rust-lang#87720 (don't use .into() to convert types to identical types (clippy::useless_conversion))
 - rust-lang#87723 (Use .contains instead of manual reimplementation.)
 - rust-lang#87729 (Remove the aarch64 `crypto` target_feature)
 - rust-lang#87731 (Update cargo)
 - rust-lang#87734 (Test dropping union fields more)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 519c5a2 into rust-lang:master Aug 4, 2021
@rustbot rustbot added this to the 1.56.0 milestone Aug 4, 2021
tarcieri added a commit to RustCrypto/utils that referenced this pull request Aug 26, 2021
It was removed from the nightly compiler in this PR:

rust-lang/rust#87729

This crate attempts to provide a 1:1 mapping of CPU feature detection to
rustc's own target features, so this PR accordingly removes it.

Breaking change; will require a minor version bump.
tarcieri added a commit to RustCrypto/utils that referenced this pull request Aug 26, 2021
It was removed from the nightly compiler in this PR:

rust-lang/rust#87729

This crate attempts to provide a 1:1 mapping of CPU feature detection to
rustc's own target features, so this PR accordingly removes it.

Breaking change; will require a minor version bump.
tarcieri added a commit to RustCrypto/universal-hashes that referenced this pull request Aug 27, 2021
It was removed from the nightly compiler:

rust-lang/rust#87729
tarcieri added a commit to RustCrypto/universal-hashes that referenced this pull request Aug 27, 2021
It was removed from the nightly compiler:

rust-lang/rust#87729
github-actions bot pushed a commit to gnoliyil/fuchsia that referenced this pull request Mar 7, 2022
Something changed recently in rustc that causes it to generate warnings
when building for arm64 targets.

This appears related to rust-lang/rust#87729
(though that PR is dated), which indicates that rustc is removing the
crypto target and replacing it with "aes or sha2".

This PR adds both, and removes crypto, for Rust only. (This does not
work with clang (cflags).

Change-Id: I438e2d3ae230fb512c7c864d775537ce4dd797f4
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/654243
Reviewed-by: Chris Tam <godtamit@google.com>
Fuchsia-Auto-Submit: Rich Kadel <richkadel@google.com>
Reviewed-by: Tyler Mandry <tmandry@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants