From 2dbf58c579d6fe6a8acefcd9ae17eef7e984bca1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 23 Jan 2019 16:05:13 +0300 Subject: 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 --- crates/ra_hir/src/lib.rs | 5 +++-- crates/ra_hir/src/marks.rs | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'crates/ra_hir/src') 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 @@ pub mod db; #[cfg(test)] mod mock; -#[cfg(test)] -mod marks; mod query_definitions; mod path; pub mod source_binder; @@ -29,6 +27,9 @@ mod generics; mod code_model_api; mod code_model_impl; +#[cfg(test)] +mod marks; + use crate::{ db::HirDatabase, 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 @@ -test_utils::mark!(name_res_works_for_broken_modules); +use test_utils::mark; + +mark!(name_res_works_for_broken_modules); -- cgit v1.2.3