Skip to content

Commit 63fa617

Browse files
bors[bot]matklad
andauthored
Merge #6155
6155: Add test makr r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents ec1f459 + 801e5b4 commit 63fa617

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/hir_def/src/find_path.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ fn find_path_inner(
222222
best_path_len - 1,
223223
prefixed,
224224
)?;
225+
mark::hit!(partially_imported);
225226
path.segments.push(info.path.segments.last().unwrap().clone());
226227
Some(path)
227228
})
@@ -515,6 +516,7 @@ mod tests {
515516

516517
#[test]
517518
fn partially_imported() {
519+
mark::check!(partially_imported);
518520
// Tests that short paths are used even for external items, when parts of the path are
519521
// already in scope.
520522
let code = r#"

0 commit comments

Comments
 (0)