From 801e5b453caca90f1d6c283f700a113e18540c1e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 6 Oct 2020 19:20:56 +0200 Subject: Add test makr --- crates/hir_def/src/find_path.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/hir_def') diff --git a/crates/hir_def/src/find_path.rs b/crates/hir_def/src/find_path.rs index 9106ed45f..02613c4c4 100644 --- a/crates/hir_def/src/find_path.rs +++ b/crates/hir_def/src/find_path.rs @@ -222,6 +222,7 @@ fn find_path_inner( best_path_len - 1, prefixed, )?; + mark::hit!(partially_imported); path.segments.push(info.path.segments.last().unwrap().clone()); Some(path) }) @@ -515,6 +516,7 @@ mod tests { #[test] fn partially_imported() { + mark::check!(partially_imported); // Tests that short paths are used even for external items, when parts of the path are // already in scope. let code = r#" -- cgit v1.2.3