Hide type inlay hints for enum variant constructors and tuple struct constructors with annoated generics #10446
Labels
A-inlay-hints
inlay/inline hints
E-easy
E-has-instructions
Issue has some instructions and pointers to code to get started
good first issue
S-actionable
Someone could pick this issue up and work on it right now
Improvement for #10441
This will currently give type hints for the two let bindings but ideally we shouldn't need to show these here either.
This should be simple to fix, for the enum case we just need to special case a branch here https://github.com/rust-analyzer/rust-analyzer/blob/4b7675fcc30d3e2c05eafc68a5724db66b58142c/crates/ide/src/inlay_hints.rs#L268-L274
to instead check for the paths qualifier segment instead of the immediate, that is check the enum part instead of the variant.
For the tuple struct part we need to basically just do whats being down a few lines below that snippet for the immediate path segment instead of the qualifier.
The text was updated successfully, but these errors were encountered: