]> git.lizzy.rs Git - rust.git/commit
Merge #11481
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Mon, 21 Feb 2022 13:08:31 +0000 (13:08 +0000)
committerGitHub <noreply@github.com>
Mon, 21 Feb 2022 13:08:31 +0000 (13:08 +0000)
commit24255e5b3dbabe7eaec1a42668d50d96d6b1aa0f
tree9de4cefeddbca76b0e79f1c589219c588c2d2844
parent8c718a47c1229e959d46887806f57c5314e9785b
parent9c6542f2097df1cfcc9491036ec607c6a2842070
Merge #11481

11481: Display parameter names when hovering over a function pointer r=Veykril a=Vannevelj

Implements #11474

The idea is pretty straightforward: previously we constructed the hover based on just the parameter types, now we pass in the parameter names as well. I went for a quick-hit approach here but I expect someone will be able to point me to a better way of resolving the identifier.

I haven't figured out yet how to actually run my rust-analyzer locally so I can see it in action but the unit test indicates it should work.

Co-authored-by: Jeroen Vannevel <jer_vannevel@outlook.com>