From 876b08c22a932e6c2628d92a475e97263e92738b Mon Sep 17 00:00:00 2001 From: Sayantan Chakraborty <142906350+sayantn@users.noreply.github.com> Date: Fri, 2 Aug 2024 02:15:37 +0530 Subject: [PATCH] Remove the `dummy` function --- crates/core_arch/src/mod.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/crates/core_arch/src/mod.rs b/crates/core_arch/src/mod.rs index 1c30fb1597..7f5f81e378 100644 --- a/crates/core_arch/src/mod.rs +++ b/crates/core_arch/src/mod.rs @@ -325,15 +325,3 @@ mod nvptx; #[cfg(any(target_arch = "loongarch64", doc))] #[doc(cfg(target_arch = "loongarch64"))] mod loongarch64; - -// TODO: remove after merge of rustc #126704 -#[unstable(feature = "sha512_sm_x86", issue = "126624")] -unsafe fn dummy() { - // This has to be here until PR #126704 gets merged into rustc, - // because otherwise rustc cannot compile because aarch64 also has - // a target feature named sm4, and that is stable. For `doc` env this - // gets compiled also in x86, but in x86 the feature sm4 is unstable - // So we need `feature(sha512_sm_x86)` somewhere, but if we place it without - // any unstable attr, rustc cannot compile stage0, because it doesn't know about - // this feature yet. -}