aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util/rust-attributes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/util/rust-attributes.cc')
-rw-r--r--gcc/rust/util/rust-attributes.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/util/rust-attributes.cc b/gcc/rust/util/rust-attributes.cc
index 3809ad7..4f3bd0b 100644
--- a/gcc/rust/util/rust-attributes.cc
+++ b/gcc/rust/util/rust-attributes.cc
@@ -22,10 +22,10 @@ namespace Rust {
namespace Analysis {
// https://doc.rust-lang.org/stable/nightly-rustc/src/rustc_feature/builtin_attrs.rs.html#256
-static const BuiltinAttrDefinition __definitions[] = {
- {"inline", CODE_GENERATION}, {"cfg", EXPANSION}, {"cfg_attr", EXPANSION},
- {"allow", STATIC_ANALYSIS}, {"lang", HIR_LOWERING},
-};
+static const BuiltinAttrDefinition __definitions[]
+ = {{"inline", CODE_GENERATION}, {"cfg", EXPANSION},
+ {"cfg_attr", EXPANSION}, {"allow", STATIC_ANALYSIS},
+ {"lang", HIR_LOWERING}, {"must_use", STATIC_ANALYSIS}};
BuiltinAttributeMappings *
BuiltinAttributeMappings::get ()