]> git.lizzy.rs Git - rust.git/commitdiff
Use another name instead of dbg for test
authorEdwin Cheng <edwin0cheng@gmail.com>
Sun, 27 Dec 2020 17:20:44 +0000 (01:20 +0800)
committerEdwin Cheng <edwin0cheng@gmail.com>
Fri, 8 Jan 2021 09:38:39 +0000 (17:38 +0800)
crates/completion/src/completions/dot.rs

index 2e25c8ba21782a7e2a7fbf825ebc5ca0f185573f..d04eef65a7963a3735cac6452177b8c8d36aee5b 100644 (file)
@@ -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#"