aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-expand.cc
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2021-02-06 15:51:57 +0800
committerSimplyTheOther <simplytheother@gmail.com>2021-02-06 15:51:57 +0800
commitd0e10517881b190de1724b29257a3e408b203d43 (patch)
treedeb1d22aaf35ac830883498146ae31ff20f5a58b /gcc/rust/expand/rust-macro-expand.cc
parent5c7dacd845ffb4b9a101308bc14241e7e9b939f8 (diff)
downloadgcc-d0e10517881b190de1724b29257a3e408b203d43.zip
gcc-d0e10517881b190de1724b29257a3e408b203d43.tar.gz
gcc-d0e10517881b190de1724b29257a3e408b203d43.tar.bz2
Fixed bad cfg predicate string interpolation
Diffstat (limited to 'gcc/rust/expand/rust-macro-expand.cc')
-rw-r--r--gcc/rust/expand/rust-macro-expand.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/expand/rust-macro-expand.cc b/gcc/rust/expand/rust-macro-expand.cc
index 29fc58b..cd37673 100644
--- a/gcc/rust/expand/rust-macro-expand.cc
+++ b/gcc/rust/expand/rust-macro-expand.cc
@@ -3285,7 +3285,7 @@ MacroExpander::fails_cfg_with_expand (std::vector<AST::Attribute> &attrs) const
if (!attr.check_cfg_predicate (session))
{
// DEBUG
- fprintf (stderr, "cfg predicate failed for attribute: \033[0;31m'%s'\033[0m\n", attr.as_string ());
+ fprintf (stderr, "cfg predicate failed for attribute: \033[0;31m'%s'\033[0m\n", attr.as_string ().c_str ());
return true;
}