mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Explicitly connect an ambiguous import path case logic with the test on it
This commit is contained in:
parent
2877707677
commit
8a5b24eb7e
2 changed files with 7 additions and 1 deletions
|
@ -141,7 +141,12 @@ fn find_path_inner(
|
|||
})
|
||||
.is_some();
|
||||
return Some(ModPath::from_segments(
|
||||
if name_already_occupied_in_type_ns { PathKind::Abs } else { PathKind::Plain },
|
||||
if name_already_occupied_in_type_ns {
|
||||
cov_mark::hit!(ambiguous_crate_start);
|
||||
PathKind::Abs
|
||||
} else {
|
||||
PathKind::Plain
|
||||
},
|
||||
vec![name],
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue