]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Use attribute value variable instead of raw text
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 15 Jan 2026 15:01:49 +0000 (16:01 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 27 Feb 2026 14:57:06 +0000 (15:57 +0100)
gcc/rust/ChangeLog:

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

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/util/rust-attributes.cc

index 1ab6564dcac17762c893aace9141f863dbd1256d..b613f95aea09690a0577cd93103a4cf14303bfab 100644 (file)
@@ -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 ())
            {