Stream: t-compiler/wg-rls-2.0

Topic: Cool bug (almost a feature)


matklad (Jun 26 2020 at 14:59, on Zulip):

Inlay hint suggest the type of parameter for function:

image.png

matklad (Jun 26 2020 at 15:00, on Zulip):

To turn this into a proper feature, we should add completion which:

Paul Faria (Jun 26 2020 at 17:34, on Zulip):

I've actually used this as if it was a feature before. But for local variables, not function parameters.

bjorn3 (Jun 26 2020 at 17:36, on Zulip):

For local variables it is a feature, for function parameters it is not deliberate.

std::Veetaha (Jun 28 2020 at 19:32, on Zulip):

This sumtimes gives inappropriate beliefs that rustc type inference will do the work, e.g. it is common for rust-analyzer to show a type parameter hint for closure parameters, but flycheck still reports an error requiring me to specify the type explicitly...

Last update: Sep 27 2020 at 12:30UTC