Generics signature help should include type parameter defaults #12729
Labels
C-feature
Category: feature request
S-actionable
Someone could pick this issue up and work on it right now
For example, in
std::ops::ControlFlow::<$0
, the signature help is rendered asenum ControlFlow<B, C>
, which does not tell the user thatC
is optional and onlyB
needs to be provided. Rendering the default type would fix that, and result inenum ControlFlow<B, C = ()>
.It's possible that a default type would be too long when fully rendered, so the length should probably be limited (the
HirDisplay
machinery can already do that).The text was updated successfully, but these errors were encountered: