about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-11-01 11:55:25 +0100
committerkennytm <kennytm@gmail.com>2018-11-01 22:52:11 +0800
commit1e1d37b637ce7440836a600f2fe373cefe39ed8f (patch)
tree7b29eb0594978d8df4856268c802274d7e7d7eb5 /src/libsyntax
parent876841267bd66d5594808997225e5e542bd5c029 (diff)
parentf6b8876d45841a2b3b082376d3a5d265851208d7 (diff)
downloadrust-1e1d37b637ce7440836a600f2fe373cefe39ed8f.tar.gz
rust-1e1d37b637ce7440836a600f2fe373cefe39ed8f.zip
Rollup merge of #55522 - matthiaskrgr:no_format, r=zackmdavis
use String::from() instead of format!() macro to construct Strings.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ext/expand.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index 33b651e1b38..ce326b728df 100644
--- a/src/libsyntax/ext/expand.rs
+++ b/src/libsyntax/ext/expand.rs
@@ -687,7 +687,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
                         "proc_macro_hygiene",
                         self.span,
                         GateIssue::Language,
-                        &format!("procedural macros cannot expand to macro definitions"),
+                        "procedural macros cannot expand to macro definitions",
                     );
                 }
                 visit::walk_item(self, i);