From c448394c530ebe556d2fc841828803e526408127 Mon Sep 17 00:00:00 2001 From: Owen Avery Date: Fri, 11 Jul 2025 23:41:53 -0400 Subject: [PATCH] Remove #[simd_test] support This attribute is a procedural macro defined by the crate simd-test-macro, not a built-in macro. gcc/rust/ChangeLog: * util/rust-attribute-values.h (Attributes::SIMD_TEST): Remove static constexpr member variable. * util/rust-attributes.cc (__definitions): Remove entry for SIMD_TEST. Signed-off-by: Owen Avery --- gcc/rust/util/rust-attribute-values.h | 2 -- gcc/rust/util/rust-attributes.cc | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/gcc/rust/util/rust-attribute-values.h b/gcc/rust/util/rust-attribute-values.h index 367044a36c1c..f332f33404aa 100644 --- a/gcc/rust/util/rust-attribute-values.h +++ b/gcc/rust/util/rust-attribute-values.h @@ -88,8 +88,6 @@ class Attributes static constexpr auto &TEST = "test"; - static constexpr auto &SIMD_TEST = "simd_test"; - static constexpr auto &RUSTC_ARGS_REQUIRED_CONST = "rustc_args_required_const"; }; diff --git a/gcc/rust/util/rust-attributes.cc b/gcc/rust/util/rust-attributes.cc index 265391827e42..2d712526cda9 100644 --- a/gcc/rust/util/rust-attributes.cc +++ b/gcc/rust/util/rust-attributes.cc @@ -125,8 +125,7 @@ static const BuiltinAttrDefinition __definitions[] {Attrs::NON_EXHAUSTIVE, TYPE_CHECK}, {Attrs::RUSTFMT, EXTERNAL}, - {Attrs::TEST, CODE_GENERATION}, - {Attrs::SIMD_TEST, CODE_GENERATION}}; + {Attrs::TEST, CODE_GENERATION}}; BuiltinAttributeMappings * BuiltinAttributeMappings::get ()