rust-lang / rust-lang/rust-analyzer

Possible bug in vscode tooltip shown when hovering over a function

Open
#21,447 3 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-hover A-ide A-ty C-bug
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

rust-analyzer version: 0.3.2743-standalone

rustc version: rustc 1.92.0 (ded5c06cf 2025-12-08)

editor or extension: VSCode with rust-analyzer

I'm not sure where else to put this assuming it may be a bug which leaks some kind of internal information, and if it is not a bug, I would like to know whether this can be turned off or request a setting so it can be turned off.

Basically, whenever trying to view the content of a tooltip of a function, bunch of irrelevant stuff comes up before the documentation, as can be viewed in the screenshot.

Image

The thing is it only happens on some functions and I'm not sure what the common denominator is, but it likely has to do with the "notable traits" it mentions like Iterator or Future, which isn't something my type implements though.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the hover tooltip in VSCode using rust-analyzer 0.3.2743-standalone and rustc 1.92.0, focusing on functions that show notable traits such as Iterator or Future. Compare the extra information before the documentation and determine whether it is erroneous or should be controlled by a setting; done means a confirmed fix or documented configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.