rust-lang / rust-lang/rust-analyzer
Display function return type for auto completion suggestions
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
Currently I mainly use CLion with the Rust plugin when programming in Rust, but every now and then I try out Rust Analyzer. One thing that is holding me back from switching is the fact that CLion shows the return type of functions:

This is how the auto complete suggestions look like using Rust Analyzer:

As far as I am aware it is not possible to display the return types with Rust Analyzer, so it'd be amazing if this feature could be added.
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
No source file or test is identified in the issue. Start by locating Rust Analyzer's completion implementation and the rendering of function signatures, then compare the current suggestions with the return-type examples in the screenshots. Done means function completion suggestions visibly include their return types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100