]> git.lizzy.rs Git - rust.git/commit
Merge #9130
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Thu, 3 Jun 2021 14:26:07 +0000 (14:26 +0000)
committerGitHub <noreply@github.com>
Thu, 3 Jun 2021 14:26:07 +0000 (14:26 +0000)
commit7f9c4a59d9a84cd8c734286937439b5cd215be27
tree10ef9c49e6667d0966c8ecfe9766925a0f6c966f
parent1dbdac8f518e5d3400a0bbc0478a606ab70d8a44
parentcc762c30df9d587bf36f98d06295e6cf42be6e40
Merge #9130

9130: Prefix/suffix parameter inlay hint hiding heuristic is more strict r=Veykril a=Veykril

Instead of just plainly checking prefix/suffix of the argument string to the parameter name we only check for prefixes and suffixes if they are split apart via an underscore meaning, with the argument `foo`, it will be hidden for the parameter name `foo_bar` but not for `foobar`.

bors r+
Closes https://github.com/rust-analyzer/rust-analyzer/issues/8878

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>