about summary refs log tree commit diff
path: root/compiler/rustc_error_messages/src
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-06-09 12:17:52 -0500
committerGitHub <noreply@github.com>2025-06-09 12:17:52 -0500
commit2f26913270f55356a632377338b6afd5137c71be (patch)
tree6654edc09e724a801c62d291c6787850668f33d0 /compiler/rustc_error_messages/src
parent14863ea0777c68348b3e6e7a8472423d273a52af (diff)
parent632396ea01e7556d9af24ad1a22f9a74ccb63d60 (diff)
downloadrust-2f26913270f55356a632377338b6afd5137c71be.tar.gz
rust-2f26913270f55356a632377338b6afd5137c71be.zip
Rollup merge of #140767 - sayantn:stabilize-sha512, r=traviscross,tgross35
Stabilize `sha512`, `sm3` and `sm4` for x86

This PR stabilizes the feature flag `sha512_sm_x86` (tracking issue rust-lang/rust#126624).

# Public API
The 3 `x86` target features `sha512`, `sm3` and `sm4`, and the associated intrinsics in stdarch.

These target features are very specialized, and are only used to signal the presence of the corresponding CPU instruction. They don't have any nontrivial interaction with the ABI (contrary to something like AVX), and serve the only purpose of enabling 10 stdarch intrinsics, all of which have been implemented and propagated to rustc via a stdarch submodule update.

Also, these were added in LLVM17, and as the minimum LLVM required for rustc is LLVM19, we are safe in that front too!

# Associated PRs
 - rust-lang/rust#126704
 - rust-lang/stdarch#1592
 - rust-lang/stdarch#1790
 - rust-lang/rust#140389 (stdarch submodule update)
 - rust-lang/stdarch#1796 (stabilizing the runtime detection and intrinsics)
 - rust-lang/rust#141964 (stdarch submodule update for the stabilization of the runtime detection and intrinsics)

As all of the required tasks have been done (adding the target features to rustc, implementing their runtime detection in std_detect and implementing the associated intrinsics in core_arch), these target features can be stabilized now.

cc `@rust-lang/lang`
cc `@rust-lang/libs-api` for the intrinsics and runtime detection

I don't think anyone else worked on this feature, so no one else to ping, maybe cc `@Amanieu.` I will send the reference pr soon.
Diffstat (limited to 'compiler/rustc_error_messages/src')
0 files changed, 0 insertions, 0 deletions