From ee93037ed91f0c0e15aec28a744d14a3d97ca72c Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Mon, 28 Dec 2020 01:20:44 +0800 Subject: Use another name instead of dbg for test --- crates/completion/src/completions/dot.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/completion/src/completions/dot.rs b/crates/completion/src/completions/dot.rs index 2e25c8ba2..d04eef65a 100644 --- a/crates/completion/src/completions/dot.rs +++ b/crates/completion/src/completions/dot.rs @@ -373,20 +373,20 @@ fn foo(a: A) { fn macro_expansion_resilient() { check( r#" -macro_rules! dbg { +macro_rules! d { () => {}; ($val:expr) => { match $val { tmp => { tmp } } }; // Trailing comma with single argument is ignored - ($val:expr,) => { $crate::dbg!($val) }; + ($val:expr,) => { $crate::d!($val) }; ($($val:expr),+ $(,)?) => { - ($($crate::dbg!($val)),+,) + ($($crate::d!($val)),+,) }; } struct A { the_field: u32 } fn foo(a: A) { - dbg!(a.$0) + d!(a.$0) } "#, expect![[r#" -- cgit v1.2.3