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

@ -247,7 +247,7 @@ pub(crate) fn complete_expr_path(
.find_path(
ctx.db,
hir::ModuleDef::from(strukt),
ctx.config.import_path_config(),
ctx.config.import_path_config(ctx.is_nightly),
)
.filter(|it| it.len() > 1);
@ -269,7 +269,7 @@ pub(crate) fn complete_expr_path(
.find_path(
ctx.db,
hir::ModuleDef::from(un),
ctx.config.import_path_config(),
ctx.config.import_path_config(ctx.is_nightly),
)
.filter(|it| it.len() > 1);