diff options
author | Aleksey Kladov <[email protected]> | 2019-01-23 13:05:13 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-23 13:05:13 +0000 |
commit | 2dbf58c579d6fe6a8acefcd9ae17eef7e984bca1 (patch) | |
tree | eae324e5b6277358bf6d4c162cd387ac4a2a717f /crates/ra_hir/src | |
parent | 86507c0626eb07485b21c61638673acbb3c2a9ad (diff) |
move completion item tests closer to the code
this is the reason why we need marks: the tests were spread across two
files, because I've forgotten that there were tests already
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/lib.rs | 5 | ||||
-rw-r--r-- | crates/ra_hir/src/marks.rs | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/crates/ra_hir/src/lib.rs b/crates/ra_hir/src/lib.rs index 33a9ba605..a861ee88e 100644 --- a/crates/ra_hir/src/lib.rs +++ b/crates/ra_hir/src/lib.rs | |||
@@ -8,8 +8,6 @@ | |||
8 | pub mod db; | 8 | pub mod db; |
9 | #[cfg(test)] | 9 | #[cfg(test)] |
10 | mod mock; | 10 | mod mock; |
11 | #[cfg(test)] | ||
12 | mod marks; | ||
13 | mod query_definitions; | 11 | mod query_definitions; |
14 | mod path; | 12 | mod path; |
15 | pub mod source_binder; | 13 | pub mod source_binder; |
@@ -29,6 +27,9 @@ mod generics; | |||
29 | mod code_model_api; | 27 | mod code_model_api; |
30 | mod code_model_impl; | 28 | mod code_model_impl; |
31 | 29 | ||
30 | #[cfg(test)] | ||
31 | mod marks; | ||
32 | |||
32 | use crate::{ | 33 | use crate::{ |
33 | db::HirDatabase, | 34 | db::HirDatabase, |
34 | name::{AsName, KnownName}, | 35 | name::{AsName, KnownName}, |
diff --git a/crates/ra_hir/src/marks.rs b/crates/ra_hir/src/marks.rs index 6aff2c4e1..f4d0c3e59 100644 --- a/crates/ra_hir/src/marks.rs +++ b/crates/ra_hir/src/marks.rs | |||
@@ -1 +1,3 @@ | |||
1 | test_utils::mark!(name_res_works_for_broken_modules); | 1 | use test_utils::mark; |
2 | |||
3 | mark!(name_res_works_for_broken_modules); | ||