]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: attributes: Add allow_internal_unstable attribute
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 6 Jun 2023 16:45:36 +0000 (18:45 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:46:25 +0000 (18:46 +0100)
Add allow_internal_unstable to the attribute table in order for it to be
flagged as builtin.

gcc/rust/ChangeLog:

* util/rust-attributes.cc: Add attribute to the table.

gcc/rust/util/rust-attributes.cc

index 63bb57f3cd453b51e313361c053bec1934cbd130..3a33d0629f2514970e39d041719059ac53c6ed79 100644 (file)
@@ -33,6 +33,7 @@ static const BuiltinAttrDefinition __definitions[]
      {"cfg_attr", EXPANSION},
      {"deprecated", STATIC_ANALYSIS},
      {"allow", STATIC_ANALYSIS},
+     {"allow_internal_unstable", STATIC_ANALYSIS},
      {"doc", HIR_LOWERING},
      {"must_use", STATIC_ANALYSIS},
      {"lang", HIR_LOWERING},