aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/nameres/tests/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/nameres/tests/macros.rs')
-rw-r--r--crates/ra_hir/src/nameres/tests/macros.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/crates/ra_hir/src/nameres/tests/macros.rs b/crates/ra_hir/src/nameres/tests/macros.rs
index 42241aeff..4e04740eb 100644
--- a/crates/ra_hir/src/nameres/tests/macros.rs
+++ b/crates/ra_hir/src/nameres/tests/macros.rs
@@ -21,6 +21,7 @@ fn macro_rules_are_globally_visible() {
21 ⋮crate 21 ⋮crate
22 ⋮Foo: t v 22 ⋮Foo: t v
23 ⋮nested: t 23 ⋮nested: t
24 ⋮structs: m
24 25
25 ⋮crate::nested 26 ⋮crate::nested
26 ⋮Bar: t v 27 ⋮Bar: t v
@@ -46,6 +47,7 @@ fn macro_rules_can_define_modules() {
46 ); 47 );
47 assert_snapshot_matches!(map, @r###" 48 assert_snapshot_matches!(map, @r###"
48 ⋮crate 49 ⋮crate
50 ⋮m: m
49 ⋮n1: t 51 ⋮n1: t
50 52
51 ⋮crate::n1 53 ⋮crate::n1
@@ -127,8 +129,11 @@ fn unexpanded_macro_should_expand_by_fixedpoint_loop() {
127 "foo": ("/lib.rs", []), 129 "foo": ("/lib.rs", []),
128 }, 130 },
129 ); 131 );
130 assert_snapshot_matches!(map, @r###"crate 132 assert_snapshot_matches!(map, @r###"
131Foo: t v 133 ⋮crate
132bar: m 134 ⋮Foo: t v
133foo: m"###); 135 ⋮bar: m
136 ⋮baz: m
137 ⋮foo: m
138 "###);
134} 139}