Fix flyimport not filtering via stability of import path

This commit is contained in:
Lukas Wirth 2025-01-25 12:18:54 +01:00
parent e22bcfbf57
commit b31f53e0d6
21 changed files with 89 additions and 20 deletions

View file

@ -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(),