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]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/49d68147fbf03d9f602fc400d00a83f02ed753ae

The commit has been mentioned in the following pull-request(s):
 - https://github.com/Rust-GCC/gccrs/pull/4385

 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 1ab6564dc..b613f95ae 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.52.0

Reply via email to