diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-09 19:07:28 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-09 19:07:28 +0100 |
commit | 9635d8bc44cf58875e97e9e77c3426f746ab7007 (patch) | |
tree | 09c5242d219f8a289936318d85b4daad8d2ae50b /crates/ra_syntax/test_data/parser/fuzz-failures/0004.rs | |
parent | dde9488559514e7d039cec9407e1f8627f665cd0 (diff) | |
parent | ebc61709c86a9bfceafecc0b6ed9cc4f4624e0fe (diff) |
Merge #3901
3901: Add more heuristics for hiding obvious param hints r=matklad a=IceSentry
This will now hide `value`, `pat`, `rhs` and `other`. These words were selected from the std because they are used in commonly used functions with only a single param and are obvious by their use.
It will also hide the hint if the passed param **starts** or end with the param_name. Maybe we could also split on '_' and check if one of the string is the param_name.
I think it would be good to also hide `bytes` if the type is `[u8; n]` but I'm not sure how to get the param type signature.
Closes #3900
Co-authored-by: IceSentry <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/fuzz-failures/0004.rs')
0 files changed, 0 insertions, 0 deletions