From: Pierre-Emmanuel Patry <[email protected]>

gcc/rust/ChangeLog:

        * util/rust-attributes.cc (AttributeChecker::visit): Use const
        variable.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
---
 gcc/rust/util/rust-attributes.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/rust/util/rust-attributes.cc b/gcc/rust/util/rust-attributes.cc
index 1ab6564dcac..b613f95aea0 100644
--- a/gcc/rust/util/rust-attributes.cc
+++ b/gcc/rust/util/rust-attributes.cc
@@ -894,7 +894,7 @@ AttributeChecker::visit (AST::Function &fun)
                "to %<unsafe%> functions");
            }
        }
-      else if (result.name == "no_mangle")
+      else if (result.name == Attrs::NO_MANGLE)
        {
          if (attribute.has_attr_input ())
            {
-- 
2.50.1

Reply via email to