@@ -52,6 +52,7 @@ public:
static constexpr auto &RUSTC_INHERIT_OVERFLOW_CHECKS
= "rustc_inherit_overflow_checks";
static constexpr auto &STABLE = "stable";
+ static constexpr auto &UNSTABLE = "unstable";
};
} // namespace Values
} // namespace Rust
@@ -60,7 +60,8 @@ static const BuiltinAttrDefinition __definitions[]
// #![feature(rustc_attrs)]
{Attrs::RUSTC_DEPRECATED, STATIC_ANALYSIS},
{Attrs::RUSTC_INHERIT_OVERFLOW_CHECKS, CODE_GENERATION},
- {Attrs::STABLE, STATIC_ANALYSIS}};
+ {Attrs::STABLE, STATIC_ANALYSIS},
+ {Attrs::UNSTABLE, STATIC_ANALYSIS}};
BuiltinAttributeMappings *
BuiltinAttributeMappings::get ()
new file mode 100644
@@ -0,0 +1,2 @@
+#[unstable(feature = "some_feature", issue = "12345")]
+pub fn foo() {}