Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Trait Bound in the function signature hints. #18945

Open
lh123 opened this issue Jan 16, 2025 · 1 comment
Open

Show Trait Bound in the function signature hints. #18945

lh123 opened this issue Jan 16, 2025 · 1 comment
Labels
A-config configuration A-ide general IDE features C-feature Category: feature request

Comments

@lh123
Copy link
Contributor

lh123 commented Jan 16, 2025

Currently, RA (Rust Analyzer) does not display Trait Bound in the function signature hints.

fn test<R: std::io::Read>(r: R)  {}
fn test1<R>(r: R) where R: std::io::Read {}

Current: (where R: std::io::Read not show)
Image

Expected:
Show Trait Bound just like hover
Image

@lh123 lh123 added the C-feature Category: feature request label Jan 16, 2025
@Veykril Veykril added A-ide general IDE features A-config configuration labels Jan 16, 2025
@Veykril
Copy link
Member

Veykril commented Jan 16, 2025

Sounds fine by me, but should be gated behind the signatureInfo.detail config as a new variant (without changing the current default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-config configuration A-ide general IDE features C-feature Category: feature request
Projects
None yet
Development

No branches or pull requests

2 participants