From 933d7aa1ca89feb87128fa88d63f3710297cbb22 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Wed, 17 Jun 2026 09:16:43 +0200 Subject: [PATCH 1/2] Reject `impl const Trait` since the right syntax is `const impl Trait` now --- crates/core_arch/src/loongarch64/simd.rs | 2 +- crates/core_arch/src/simd.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/core_arch/src/loongarch64/simd.rs b/crates/core_arch/src/loongarch64/simd.rs index 2c4a0f8493..32f191509b 100644 --- a/crates/core_arch/src/loongarch64/simd.rs +++ b/crates/core_arch/src/loongarch64/simd.rs @@ -18,7 +18,7 @@ pub(super) const trait SimdExt: Sized { macro_rules! impl_simd_ext { ($v:ident, $e:ty) => { #[rustc_const_unstable(feature = "stdarch_const_helpers", issue = "none")] - impl const SimdExt for crate::core_arch::simd::$v { + const impl SimdExt for crate::core_arch::simd::$v { type Elem = $e; #[inline(always)] diff --git a/crates/core_arch/src/simd.rs b/crates/core_arch/src/simd.rs index 9a756eee44..30c3125f5f 100644 --- a/crates/core_arch/src/simd.rs +++ b/crates/core_arch/src/simd.rs @@ -88,7 +88,7 @@ impl Clone for Simd { #[rustc_const_unstable(feature = "stdarch_const_helpers", issue = "none")] #[rustfmt::skip] // FIXME: https://github.com/rust-lang/stdarch/pull/2133#issuecomment-4524350350 -impl const crate::cmp::PartialEq for Simd { +const impl crate::cmp::PartialEq for Simd { #[inline] fn eq(&self, other: &Self) -> bool { self.as_array() == other.as_array() @@ -301,7 +301,7 @@ impl Clone for SimdM { #[rustc_const_unstable(feature = "stdarch_const_helpers", issue = "none")] #[rustfmt::skip] // FIXME: https://github.com/rust-lang/stdarch/pull/2133#issuecomment-4524350350 -impl const crate::cmp::PartialEq for SimdM { +const impl crate::cmp::PartialEq for SimdM { #[inline] fn eq(&self, other: &Self) -> bool { self.as_array() == other.as_array() From 15ce401ede890cb761d98a8ef593fba02e4d3363 Mon Sep 17 00:00:00 2001 From: The rustc-josh-sync Cronjob Bot Date: Fri, 19 Jun 2026 09:53:18 +0000 Subject: [PATCH 2/2] Prepare for merging from rust-lang/rust This updates the rust-version file to 8e150217bafcaaaa0c45bf685c55fd56cec48598. --- rust-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-version b/rust-version index 387bd8edd2..e8cec4e0ee 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -029c9e18dd1f4668e1d42bb187c1c263dfe20093 +8e150217bafcaaaa0c45bf685c55fd56cec48598