diff options
Diffstat (limited to 'crates/ide_diagnostics/src/handlers/unresolved_import.rs')
-rw-r--r-- | crates/ide_diagnostics/src/handlers/unresolved_import.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crates/ide_diagnostics/src/handlers/unresolved_import.rs b/crates/ide_diagnostics/src/handlers/unresolved_import.rs index f30051c12..e52a88459 100644 --- a/crates/ide_diagnostics/src/handlers/unresolved_import.rs +++ b/crates/ide_diagnostics/src/handlers/unresolved_import.rs | |||
@@ -30,7 +30,7 @@ mod tests { | |||
30 | r#" | 30 | r#" |
31 | use does_exist; | 31 | use does_exist; |
32 | use does_not_exist; | 32 | use does_not_exist; |
33 | //^^^^^^^^^^^^^^ unresolved import | 33 | //^^^^^^^^^^^^^^ error: unresolved import |
34 | 34 | ||
35 | mod does_exist {} | 35 | mod does_exist {} |
36 | "#, | 36 | "#, |
@@ -43,18 +43,18 @@ mod does_exist {} | |||
43 | check_diagnostics( | 43 | check_diagnostics( |
44 | r#" | 44 | r#" |
45 | use does_exist::{Exists, DoesntExist}; | 45 | use does_exist::{Exists, DoesntExist}; |
46 | //^^^^^^^^^^^ unresolved import | 46 | //^^^^^^^^^^^ error: unresolved import |
47 | 47 | ||
48 | use {does_not_exist::*, does_exist}; | 48 | use {does_not_exist::*, does_exist}; |
49 | //^^^^^^^^^^^^^^^^^ unresolved import | 49 | //^^^^^^^^^^^^^^^^^ error: unresolved import |
50 | 50 | ||
51 | use does_not_exist::{ | 51 | use does_not_exist::{ |
52 | a, | 52 | a, |
53 | //^ unresolved import | 53 | //^ error: unresolved import |
54 | b, | 54 | b, |
55 | //^ unresolved import | 55 | //^ error: unresolved import |
56 | c, | 56 | c, |
57 | //^ unresolved import | 57 | //^ error: unresolved import |
58 | }; | 58 | }; |
59 | 59 | ||
60 | mod does_exist { | 60 | mod does_exist { |
@@ -71,18 +71,18 @@ mod does_exist { | |||
71 | //- /main.rs crate:main | 71 | //- /main.rs crate:main |
72 | mod a { | 72 | mod a { |
73 | extern crate doesnotexist; | 73 | extern crate doesnotexist; |
74 | //^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved extern crate | 74 | //^^^^^^^^^^^^^^^^^^^^^^^^^^ error: unresolved extern crate |
75 | 75 | ||
76 | // Should not error, since we already errored for the missing crate. | 76 | // Should not error, since we already errored for the missing crate. |
77 | use doesnotexist::{self, bla, *}; | 77 | use doesnotexist::{self, bla, *}; |
78 | 78 | ||
79 | use crate::doesnotexist; | 79 | use crate::doesnotexist; |
80 | //^^^^^^^^^^^^^^^^^^^ unresolved import | 80 | //^^^^^^^^^^^^^^^^^^^ error: unresolved import |
81 | } | 81 | } |
82 | 82 | ||
83 | mod m { | 83 | mod m { |
84 | use super::doesnotexist; | 84 | use super::doesnotexist; |
85 | //^^^^^^^^^^^^^^^^^^^ unresolved import | 85 | //^^^^^^^^^^^^^^^^^^^ error: unresolved import |
86 | } | 86 | } |
87 | "#, | 87 | "#, |
88 | ); | 88 | ); |