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.
This commit is contained in:
kennytm 2017-07-18 01:49:40 +08:00
parent 5803f99bd4
commit 2d6c10f6f4
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C

View File

@ -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]