Skip to content

Commit 07a5920

Browse files
committed
rustc_allow_const_fn_unstable
1 parent fef1a2d commit 07a5920

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

gcc/rust/util/rust-attribute-values.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class Attributes
6060
static constexpr auto &RUSTC_PROMOTABLE = "rustc_promotable";
6161
static constexpr auto &RUSTC_CONST_STABLE = "rustc_const_stable";
6262
static constexpr auto &RUSTC_CONST_UNSTABLE = "rustc_const_unstable";
63+
static constexpr auto &RUSTC_ALLOW_CONST_FN_UNSTABLE = "rustc_allow_const_fn_unstable";
6364

6465
static constexpr auto &RUSTC_SPECIALIZATION_TRAIT
6566
= "rustc_specialization_trait";

gcc/rust/util/rust-attributes.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ static const BuiltinAttrDefinition __definitions[]
103103
{Attrs::RUSTC_PROMOTABLE, CODE_GENERATION},
104104
{Attrs::RUSTC_CONST_STABLE, STATIC_ANALYSIS},
105105
{Attrs::RUSTC_CONST_UNSTABLE, STATIC_ANALYSIS},
106+
{Attrs::RUSTC_ALLOW_CONST_FN_UNSTABLE, STATIC_ANALYSIS},
106107
{Attrs::PRELUDE_IMPORT, NAME_RESOLUTION},
107108
{Attrs::TRACK_CALLER, CODE_GENERATION},
108109
{Attrs::RUSTC_SPECIALIZATION_TRAIT, TYPE_CHECK},

0 commit comments

Comments
 (0)