diff options
Diffstat (limited to 'gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc')
-rw-r--r-- | gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc index f24c91d..486998d 100644 --- a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc +++ b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc @@ -19,6 +19,7 @@ #include "rust-toplevel-name-resolver-2.0.h" #include "rust-ast-full.h" #include "rust-hir-map.h" +#include "rust-attribute-values.h" namespace Rust { namespace Resolver2_0 { @@ -137,7 +138,7 @@ static bool is_macro_export (AST::MacroRulesDefinition &def) { for (const auto &attr : def.get_outer_attrs ()) - if (attr.get_path ().as_string () == "macro_export") + if (attr.get_path ().as_string () == Values::Attributes::MACRO_EXPORT) return true; return false; |