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();
|
.is_some();
|
||||||
return Some(ModPath::from_segments(
|
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],
|
vec![name],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -980,6 +980,7 @@ fn bar() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn uses_abs_path_with_extern_crate_clash() {
|
fn uses_abs_path_with_extern_crate_clash() {
|
||||||
|
cov_mark::check!(ambiguous_crate_start);
|
||||||
check_assist(
|
check_assist(
|
||||||
auto_import,
|
auto_import,
|
||||||
r#"
|
r#"
|
||||||
|
Loading…
Reference in New Issue
Block a user