Stream: t-compiler/rust-analyzer

Topic: Chaining hints are too verbose


Jonas Schievink [he/him] (Feb 04 2021 at 16:53, on Zulip):

There's code that avoids including default type parameters in inlay hints, but it doesn't seem to be working right:

screenshot-2021-02-04-175244.png

Jonas Schievink [he/him] (Feb 04 2021 at 16:53, on Zulip):

Ah nevermind this is FxHashMap, not HashMap

matklad (Feb 04 2021 at 16:54, on Zulip):

yeah, thses are aliases

Jonas Schievink [he/him] (Feb 04 2021 at 16:54, on Zulip):

I guess finding the shortest-possible type alias to display is fairly difficult

matklad (Feb 04 2021 at 16:56, on Zulip):

Maybe: I bit my tongue badly while reading types and programming languages during lunch today, I am scared to open the book to check :D

Florian Diebold (Feb 04 2021 at 18:05, on Zulip):

there's an issue about trying to keep the user-specified type alias as far as possible. don't know if it would be possible past the entry call though

Florian Diebold (Feb 04 2021 at 18:07, on Zulip):

ah wait, sure it would, that's just another FxHashMap

Last update: Jul 29 2021 at 07:45UTC