Skip to content

Commit 49d6814

Browse files
committed
Use attribute value variable instead of raw text
gcc/rust/ChangeLog: * util/rust-attributes.cc (AttributeChecker::visit): Use const variable. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
1 parent 2d92c49 commit 49d6814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/rust/util/rust-attributes.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ AttributeChecker::visit (AST::Function &fun)
894894
"to %<unsafe%> functions");
895895
}
896896
}
897-
else if (result.name == "no_mangle")
897+
else if (result.name == Attrs::NO_MANGLE)
898898
{
899899
if (attribute.has_attr_input ())
900900
{

0 commit comments

Comments
 (0)