mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Add test makr
This commit is contained in:
parent
ec1f459980
commit
801e5b453c
1 changed files with 2 additions and 0 deletions
|
@ -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#"
|
||||
|
|
Loading…
Reference in a new issue