10557: fix: Fix qualified path completion not completing macros r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
bors[bot] 2021-10-16 21:33:55 +00:00 committed by GitHub
commit 2d7d7f729d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -223,6 +223,7 @@ pub(crate) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionCon
});
}
}
hir::PathResolution::Macro(mac) => acc.add_macro(ctx, None, mac),
_ => {}
}
}

View file

@ -122,11 +122,14 @@ use foo::$0
mod foo {
struct Private;
pub struct Foo;
macro_rules! foo_ { {} => {} }
pub use foo_ as foo;
}
struct Bar;
"#,
expect![[r#"
st Foo
ma foo! macro_rules! foo_
"#]],
);
}