From 7786ab2d44518a1f78d4b1e750cab401740ecb80 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 15 Jun 2021 11:58:39 +0300 Subject: minor: add a test variation --- crates/hir_def/src/nameres/collector.rs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/crates/hir_def/src/nameres/collector.rs b/crates/hir_def/src/nameres/collector.rs index 4ae02e576..fc2c50fb8 100644 --- a/crates/hir_def/src/nameres/collector.rs +++ b/crates/hir_def/src/nameres/collector.rs @@ -2005,11 +2005,19 @@ mod tests { fn test_macro_expand_will_stop_1() { do_resolve( r#" - macro_rules! foo { - ($($ty:ty)*) => { foo!($($ty)*); } - } - foo!(KABOOM); - "#, +macro_rules! foo { + ($($ty:ty)*) => { foo!($($ty)*); } +} +foo!(KABOOM); +"#, + ); + do_resolve( + r#" +macro_rules! foo { + ($($ty:ty)*) => { foo!(() $($ty)*); } +} +foo!(KABOOM); +"#, ); } -- cgit v1.2.3