diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-17 14:56:07 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-17 14:56:07 +0100 |
commit | 4eddaa4b26b5e9d97e856fa3b8ad361cfae691d9 (patch) | |
tree | ba069b9ecb7f73d3131aee935ab72b356f63501f /crates/ra_hir_def/src/nameres/tests/mod_resolution.rs | |
parent | ae41505cadc69a4c6caa8f43b7d14a402543f2e8 (diff) | |
parent | 19e78020bd54d97c670a1bcfb187dffd2b79a3fa (diff) |
Merge #5425
5425: Remove insta for ra_hir_def r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/nameres/tests/mod_resolution.rs')
-rw-r--r-- | crates/ra_hir_def/src/nameres/tests/mod_resolution.rs | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/crates/ra_hir_def/src/nameres/tests/mod_resolution.rs b/crates/ra_hir_def/src/nameres/tests/mod_resolution.rs index 3da16fbe3..ae58948c4 100644 --- a/crates/ra_hir_def/src/nameres/tests/mod_resolution.rs +++ b/crates/ra_hir_def/src/nameres/tests/mod_resolution.rs | |||
@@ -686,27 +686,25 @@ fn unresolved_module_diagnostics() { | |||
686 | 686 | ||
687 | let crate_def_map = db.crate_def_map(krate); | 687 | let crate_def_map = db.crate_def_map(krate); |
688 | 688 | ||
689 | insta::assert_debug_snapshot!( | 689 | expect![[r#" |
690 | crate_def_map.diagnostics, | 690 | [ |
691 | @r###" | 691 | UnresolvedModule { |
692 | [ | 692 | module: Idx::<ModuleData>(0), |
693 | UnresolvedModule { | 693 | declaration: InFile { |
694 | module: Idx::<ModuleData>(0), | 694 | file_id: HirFileId( |
695 | declaration: InFile { | ||
696 | file_id: HirFileId( | ||
697 | FileId( | ||
698 | FileId( | 695 | FileId( |
699 | 0, | 696 | FileId( |
697 | 0, | ||
698 | ), | ||
700 | ), | 699 | ), |
701 | ), | 700 | ), |
702 | ), | 701 | value: FileAstId::<ra_syntax::ast::generated::nodes::Module>(1), |
703 | value: FileAstId::<ra_syntax::ast::generated::nodes::Module>(1), | 702 | }, |
703 | candidate: "bar.rs", | ||
704 | }, | 704 | }, |
705 | candidate: "bar.rs", | 705 | ] |
706 | }, | 706 | "#]] |
707 | ] | 707 | .assert_debug_eq(&crate_def_map.diagnostics); |
708 | "### | ||
709 | ); | ||
710 | } | 708 | } |
711 | 709 | ||
712 | #[test] | 710 | #[test] |