about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-07-18 01:49:40 +0800
committerkennytm <kennytm@gmail.com>2017-07-18 01:49:40 +0800
commit2d6c10f6f40d98d9e67008496704ff3b4c23b799 (patch)
treee7edf17278f8c7b0d44098cff834aeed4b20aa26 /src/libcore
parent5803f99bd4c53c3f469df26513ffa2e058094c53 (diff)
downloadrust-2d6c10f6f40d98d9e67008496704ff3b4c23b799.tar.gz
rust-2d6c10f6f40d98d9e67008496704ff3b4c23b799.zip
Fix "Quasi-quoting is inefficient" warning in incremental rustbuild.
After #43252 is merged, building stage0 libcore with -i (--incremental)
flag will cause 17 "Quasi-quoting might make incremental compilation very
inefficient: NtExpr(..)" warnings, as in #40946.

Fixing the warning in #40946 will take 12 weeks from now to make into the
next stage0, so it is quicker to workaround it in libcore instead.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/default.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/default.rs b/src/libcore/default.rs
index 244df1a9966..ab36e29b1e1 100644
--- a/src/libcore/default.rs
+++ b/src/libcore/default.rs
@@ -126,7 +126,7 @@ pub trait Default: Sized {
 }
 
 macro_rules! default_impl {
-    ($t:ty, $v:expr, $doc:expr) => {
+    ($t:ty, $v:expr, $doc:tt) => {
         #[stable(feature = "rust1", since = "1.0.0")]
         impl Default for $t {
             #[inline]