]> git.lizzy.rs Git - rust.git/commitdiff
Add test makr
authorAleksey Kladov <aleksey.kladov@gmail.com>
Tue, 6 Oct 2020 17:20:56 +0000 (19:20 +0200)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Tue, 6 Oct 2020 17:20:56 +0000 (19:20 +0200)
crates/hir_def/src/find_path.rs

index 9106ed45fac1f23fccfbf94a484ce391c35caef5..02613c4c432b61bf47bf1929b32af74c801060a1 100644 (file)
@@ -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 @@ fn different_crate_renamed() {
 
     #[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#"