rust-lang / rust-lang/rust-analyzer
Support for macro arguments
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
I'm using rust-analyzer on Visual Studio Code and I realized while writing macros that there is no support for the macro arguments.
Indeed, there is support for function arguments, but not for the macros.
| Function arguments | Macro arguments |
|---|---|
![]() |
![]() |
| we can clearly see the function definition, which helps us know what parameters we should pass to the function | there is no support to see what are we supposed to write in the macro call |
Furthermore, a support for macros with more than one definition would be great too.

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
Reproduce the missing macro-argument support in rust-analyzer through Visual Studio Code, comparing it with the existing function-argument assistance. Trace the relevant macro assistance entry point and determine how multiple macro definitions are represented. Done means macro calls expose their expected arguments and support macros with more than one definition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100

