mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-26 17:57:19 +00:00
Fix flyimport not filtering via stability of import path
This commit is contained in:
parent
e22bcfbf57
commit
b31f53e0d6
21 changed files with 89 additions and 20 deletions
|
|
@ -319,6 +319,7 @@ impl Ctx<'_> {
|
|||
prefer_no_std: false,
|
||||
prefer_prelude: true,
|
||||
prefer_absolute: false,
|
||||
allow_unstable: true,
|
||||
};
|
||||
let found_path = self.target_module.find_path(
|
||||
self.source_scope.db.upcast(),
|
||||
|
|
@ -378,6 +379,7 @@ impl Ctx<'_> {
|
|||
prefer_no_std: false,
|
||||
prefer_prelude: true,
|
||||
prefer_absolute: false,
|
||||
allow_unstable: true,
|
||||
};
|
||||
let found_path =
|
||||
self.target_module.find_path(self.source_scope.db.upcast(), def, cfg)?;
|
||||
|
|
@ -417,6 +419,7 @@ impl Ctx<'_> {
|
|||
prefer_no_std: false,
|
||||
prefer_prelude: true,
|
||||
prefer_absolute: false,
|
||||
allow_unstable: true,
|
||||
};
|
||||
let found_path = self.target_module.find_path(
|
||||
self.source_scope.db.upcast(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue