rust-lang / rust-lang/rust-analyzer
MBE macros re-exported as items don't appear as importable in crate that defines them.
Open
Nobody has claimed this yet.
A-assists
A-completion
A-ide
C-bug
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
//- /lib.rs
mod module;
macro_rules! some_mac_ {
() => {};
}
use some_mac as some_mac;
//- /module.rs
some_$0
Neither importing completion(flyimport) nor the auto_import assist trigger here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproducer in /lib.rs and /module.rs, then trigger importing completion (flyimport) and the auto_import assist at some_$0. Trace how the macro_rules! definition and its use re-export are indexed for the defining crate. Done means both import suggestions recognize the re-exported macro in module.rs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100