This commit is contained in:
Milo 2022-01-14 22:13:45 +00:00
parent e1fe930845
commit 3de6b4839f
2 changed files with 2 additions and 6 deletions

View file

@ -226,9 +226,7 @@ fn find_imported_defs(ctx: &AssistContext, star: SyntaxToken) -> Option<Vec<Defi
.flat_map(|n| n.descendants().filter_map(ast::NameRef::cast))
.filter_map(|r| match NameRefClass::classify(&ctx.sema, &r)? {
NameRefClass::Definition(
def
@
(Definition::Macro(_)
def @ (Definition::Macro(_)
| Definition::Module(_)
| Definition::Function(_)
| Definition::Adt(_)

View file

@ -171,9 +171,7 @@ pub(crate) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionCon
}
}
hir::PathResolution::Def(
def
@
(hir::ModuleDef::Adt(_)
def @ (hir::ModuleDef::Adt(_)
| hir::ModuleDef::TypeAlias(_)
| hir::ModuleDef::BuiltinType(_)),
) => {