diff options
Diffstat (limited to 'crates/hir_def/src/nameres/tests/mod_resolution.rs')
-rw-r--r-- | crates/hir_def/src/nameres/tests/mod_resolution.rs | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/crates/hir_def/src/nameres/tests/mod_resolution.rs b/crates/hir_def/src/nameres/tests/mod_resolution.rs index 3b9f79544..f93337a6e 100644 --- a/crates/hir_def/src/nameres/tests/mod_resolution.rs +++ b/crates/hir_def/src/nameres/tests/mod_resolution.rs | |||
@@ -672,44 +672,6 @@ pub struct Baz; | |||
672 | } | 672 | } |
673 | 673 | ||
674 | #[test] | 674 | #[test] |
675 | fn unresolved_module_diagnostics() { | ||
676 | let db = TestDB::with_files( | ||
677 | r" | ||
678 | //- /lib.rs | ||
679 | mod foo; | ||
680 | mod bar; | ||
681 | mod baz {} | ||
682 | //- /foo.rs | ||
683 | ", | ||
684 | ); | ||
685 | let krate = db.test_crate(); | ||
686 | |||
687 | let crate_def_map = db.crate_def_map(krate); | ||
688 | |||
689 | expect![[r#" | ||
690 | [ | ||
691 | DefDiagnostic { | ||
692 | in_module: Idx::<ModuleData>(0), | ||
693 | kind: UnresolvedModule { | ||
694 | declaration: InFile { | ||
695 | file_id: HirFileId( | ||
696 | FileId( | ||
697 | FileId( | ||
698 | 0, | ||
699 | ), | ||
700 | ), | ||
701 | ), | ||
702 | value: FileAstId::<syntax::ast::generated::nodes::Module>(1), | ||
703 | }, | ||
704 | candidate: "bar.rs", | ||
705 | }, | ||
706 | }, | ||
707 | ] | ||
708 | "#]] | ||
709 | .assert_debug_eq(&crate_def_map.diagnostics); | ||
710 | } | ||
711 | |||
712 | #[test] | ||
713 | fn module_resolution_decl_inside_module_in_non_crate_root_2() { | 675 | fn module_resolution_decl_inside_module_in_non_crate_root_2() { |
714 | check( | 676 | check( |
715 | r#" | 677 | r#" |