aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/nameres/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/nameres/tests.rs')
-rw-r--r--crates/ra_hir/src/nameres/tests.rs32
1 files changed, 16 insertions, 16 deletions
diff --git a/crates/ra_hir/src/nameres/tests.rs b/crates/ra_hir/src/nameres/tests.rs
index 8b0887fb5..c1dbad283 100644
--- a/crates/ra_hir/src/nameres/tests.rs
+++ b/crates/ra_hir/src/nameres/tests.rs
@@ -6,7 +6,7 @@ mod mods;
6 6
7use std::sync::Arc; 7use std::sync::Arc;
8 8
9use insta::assert_snapshot_matches; 9use insta::assert_snapshot;
10use ra_db::SourceDatabase; 10use ra_db::SourceDatabase;
11use test_utils::covers; 11use test_utils::covers;
12 12
@@ -97,7 +97,7 @@ fn crate_def_map_smoke_test() {
97 enum E { V } 97 enum E { V }
98 ", 98 ",
99 ); 99 );
100 assert_snapshot_matches!(map, @r###" 100 assert_snapshot!(map, @r###"
101 ⋮crate 101 ⋮crate
102 ⋮E: t 102 ⋮E: t
103 ⋮S: t v 103 ⋮S: t v
@@ -130,7 +130,7 @@ fn bogus_paths() {
130 130
131 ", 131 ",
132 ); 132 );
133 assert_snapshot_matches!(map, @r###" 133 assert_snapshot!(map, @r###"
134 ⋮crate 134 ⋮crate
135 ⋮S: t v 135 ⋮S: t v
136 ⋮foo: t 136 ⋮foo: t
@@ -153,7 +153,7 @@ fn use_as() {
153 pub struct Baz; 153 pub struct Baz;
154 ", 154 ",
155 ); 155 );
156 assert_snapshot_matches!(map, 156 assert_snapshot!(map,
157 @r###" 157 @r###"
158 ⋮crate 158 ⋮crate
159 ⋮Foo: t v 159 ⋮Foo: t v
@@ -182,7 +182,7 @@ fn use_trees() {
182 pub enum Quux {}; 182 pub enum Quux {};
183 ", 183 ",
184 ); 184 );
185 assert_snapshot_matches!(map, @r###" 185 assert_snapshot!(map, @r###"
186 ⋮crate 186 ⋮crate
187 ⋮Baz: t v 187 ⋮Baz: t v
188 ⋮Quux: t 188 ⋮Quux: t
@@ -215,7 +215,7 @@ fn re_exports() {
215 pub struct Baz; 215 pub struct Baz;
216 ", 216 ",
217 ); 217 );
218 assert_snapshot_matches!(map, @r###" 218 assert_snapshot!(map, @r###"
219 ⋮crate 219 ⋮crate
220 ⋮Baz: t v 220 ⋮Baz: t v
221 ⋮foo: t 221 ⋮foo: t
@@ -250,7 +250,7 @@ fn std_prelude() {
250 "test_crate": ("/lib.rs", []), 250 "test_crate": ("/lib.rs", []),
251 }, 251 },
252 ); 252 );
253 assert_snapshot_matches!(map, @r###" 253 assert_snapshot!(map, @r###"
254 ⋮crate 254 ⋮crate
255 ⋮Bar: t v 255 ⋮Bar: t v
256 ⋮Baz: t v 256 ⋮Baz: t v
@@ -267,7 +267,7 @@ fn can_import_enum_variant() {
267 use self::E::V; 267 use self::E::V;
268 ", 268 ",
269 ); 269 );
270 assert_snapshot_matches!(map, @r###" 270 assert_snapshot!(map, @r###"
271 ⋮crate 271 ⋮crate
272 ⋮E: t 272 ⋮E: t
273 ⋮V: t v 273 ⋮V: t v
@@ -299,7 +299,7 @@ fn edition_2015_imports() {
299 }, 299 },
300 ); 300 );
301 301
302 assert_snapshot_matches!(map, @r###" 302 assert_snapshot!(map, @r###"
303 ⋮crate 303 ⋮crate
304 ⋮bar: t 304 ⋮bar: t
305 ⋮foo: t 305 ⋮foo: t
@@ -326,7 +326,7 @@ fn item_map_using_self() {
326 pub struct Baz; 326 pub struct Baz;
327 ", 327 ",
328 ); 328 );
329 assert_snapshot_matches!(map, @r###" 329 assert_snapshot!(map, @r###"
330 ⋮crate 330 ⋮crate
331 ⋮Baz: t v 331 ⋮Baz: t v
332 ⋮foo: t 332 ⋮foo: t
@@ -355,7 +355,7 @@ fn item_map_across_crates() {
355 }, 355 },
356 ); 356 );
357 357
358 assert_snapshot_matches!(map, @r###" 358 assert_snapshot!(map, @r###"
359 ⋮crate 359 ⋮crate
360 ⋮Baz: t v 360 ⋮Baz: t v
361 "###); 361 "###);
@@ -383,7 +383,7 @@ fn extern_crate_rename() {
383 }, 383 },
384 ); 384 );
385 385
386 assert_snapshot_matches!(map, @r###" 386 assert_snapshot!(map, @r###"
387 ⋮crate 387 ⋮crate
388 ⋮alloc_crate: t 388 ⋮alloc_crate: t
389 ⋮sync: t 389 ⋮sync: t
@@ -415,7 +415,7 @@ fn extern_crate_rename_2015_edition() {
415 }, 415 },
416 ); 416 );
417 417
418 assert_snapshot_matches!(map, 418 assert_snapshot!(map,
419 @r###" 419 @r###"
420 ⋮crate 420 ⋮crate
421 ⋮alloc_crate: t 421 ⋮alloc_crate: t
@@ -449,7 +449,7 @@ fn import_across_source_roots() {
449 }, 449 },
450 ); 450 );
451 451
452 assert_snapshot_matches!(map, @r###" 452 assert_snapshot!(map, @r###"
453 ⋮crate 453 ⋮crate
454 ⋮C: t v 454 ⋮C: t v
455 "###); 455 "###);
@@ -476,7 +476,7 @@ fn reexport_across_crates() {
476 }, 476 },
477 ); 477 );
478 478
479 assert_snapshot_matches!(map, @r###" 479 assert_snapshot!(map, @r###"
480 ⋮crate 480 ⋮crate
481 ⋮Baz: t v 481 ⋮Baz: t v
482 "###); 482 "###);
@@ -499,7 +499,7 @@ fn values_dont_shadow_extern_crates() {
499 }, 499 },
500 ); 500 );
501 501
502 assert_snapshot_matches!(map, @r###" 502 assert_snapshot!(map, @r###"
503 ⋮crate 503 ⋮crate
504 ⋮Bar: t v 504 ⋮Bar: t v
505 ⋮foo: v 505 ⋮foo: v