]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add missing known attribute stable
authorPhilip Herron <herron.philip@googlemail.com>
Wed, 29 Mar 2023 15:49:40 +0000 (16:49 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:28:40 +0000 (18:28 +0100)
Fixes #2025

gcc/rust/ChangeLog:

* util/rust-attributes.cc: Add stable to the table of known attributes

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/util/rust-attributes.cc

index 55f3aa21ef6337bc20b29c75925e08beb4cb4d69..941d4459bd4b14fb5f357dd7ed577a8301a56922 100644 (file)
@@ -46,7 +46,8 @@ static const BuiltinAttrDefinition __definitions[]
      {"target_feature", CODE_GENERATION},
      // From now on, these are reserved by the compiler and gated through
      // #![feature(rustc_attrs)]
-     {"rustc_inherit_overflow_checks", CODE_GENERATION}};
+     {"rustc_inherit_overflow_checks", CODE_GENERATION},
+     {"stable", STATIC_ANALYSIS}};
 
 BuiltinAttributeMappings *
 BuiltinAttributeMappings::get ()