mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Complete exported macros in #[macro_use($0)]
This commit is contained in:
parent
21b06c1beb
commit
b986d8ac92
6 changed files with 123 additions and 0 deletions
|
@ -254,11 +254,13 @@ fn analyze(
|
|||
{
|
||||
let colon_prefix = previous_non_trivia_token(self_token.clone())
|
||||
.map_or(false, |it| T![:] == it.kind());
|
||||
|
||||
CompletionAnalysis::UnexpandedAttrTT {
|
||||
fake_attribute_under_caret: fake_ident_token
|
||||
.parent_ancestors()
|
||||
.find_map(ast::Attr::cast),
|
||||
colon_prefix,
|
||||
extern_crate: p.ancestors().find_map(ast::ExternCrate::cast),
|
||||
}
|
||||
} else {
|
||||
return None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue