mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
fix: Allow flyimport to import primitive shadowing modules
This commit is contained in:
parent
062822ce91
commit
0851d21d1e
4 changed files with 28 additions and 2 deletions
|
@ -703,7 +703,7 @@ fn path_import_candidate(
|
|||
) -> Option<ImportCandidate> {
|
||||
Some(match qualifier {
|
||||
Some(qualifier) => match sema.resolve_path(&qualifier) {
|
||||
None => {
|
||||
Some(PathResolution::Def(ModuleDef::BuiltinType(_))) | None => {
|
||||
if qualifier.first_qualifier().map_or(true, |it| sema.resolve_path(&it).is_none()) {
|
||||
let qualifier = qualifier
|
||||
.segments()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue