mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
Explicitly connect an ambiguous import path case logic with the test on it
This commit is contained in:
parent
2877707677
commit
8a5b24eb7e
@ -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],
|
||||
));
|
||||
}
|
||||
|
@ -980,6 +980,7 @@ mod bar {
|
||||
|
||||
#[test]
|
||||
fn uses_abs_path_with_extern_crate_clash() {
|
||||
cov_mark::check!(ambiguous_crate_start);
|
||||
check_assist(
|
||||
auto_import,
|
||||
r#"
|
||||
|
Loading…
Reference in New Issue
Block a user