From d0e10517881b190de1724b29257a3e408b203d43 Mon Sep 17 00:00:00 2001 From: SimplyTheOther Date: Sat, 6 Feb 2021 15:51:57 +0800 Subject: Fixed bad cfg predicate string interpolation --- gcc/rust/expand/rust-macro-expand.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') 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 &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; } -- cgit v1.1