Skip to content

Commit 2d6c10f

Browse files
committed
Fix "Quasi-quoting is inefficient" warning in incremental rustbuild.
After rust-lang#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 rust-lang#40946. Fixing the warning in rust-lang#40946 will take 12 weeks from now to make into the next stage0, so it is quicker to workaround it in libcore instead.
1 parent 5803f99 commit 2d6c10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/default.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub trait Default: Sized {
126126
}
127127

128128
macro_rules! default_impl {
129-
($t:ty, $v:expr, $doc:expr) => {
129+
($t:ty, $v:expr, $doc:tt) => {
130130
#[stable(feature = "rust1", since = "1.0.0")]
131131
impl Default for $t {
132132
#[inline]

0 commit comments

Comments
 (0)