From 2510eaa9b2acc65d0395ae81296197a9e4c9bdfd Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 10 Oct 2021 11:16:25 +0300 Subject: [PATCH] test formatting --- crates/hir_def/src/macro_expansion_tests.rs | 1 + crates/hir_def/src/macro_expansion_tests/mbe.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/hir_def/src/macro_expansion_tests.rs b/crates/hir_def/src/macro_expansion_tests.rs index e892ab52686f..3cc3d34cb083 100644 --- a/crates/hir_def/src/macro_expansion_tests.rs +++ b/crates/hir_def/src/macro_expansion_tests.rs @@ -128,6 +128,7 @@ fn pretty_print_macro_expansion(expn: SyntaxNode) -> String { (T![>], _) if curr_kind.is_keyword() => " ", (T![->], _) | (_, T![->]) => " ", (T![&&], _) | (_, T![&&]) => " ", + (T![,], _) => " ", _ => "", }; diff --git a/crates/hir_def/src/macro_expansion_tests/mbe.rs b/crates/hir_def/src/macro_expansion_tests/mbe.rs index 1cabce70fec8..d7ff87844c7c 100644 --- a/crates/hir_def/src/macro_expansion_tests/mbe.rs +++ b/crates/hir_def/src/macro_expansion_tests/mbe.rs @@ -835,7 +835,7 @@ macro_rules! m { ($p:pat) => { fn foo() { let $p; } } } fn foo() { - let(a,b); + let(a, b); } "#]], );