rust-analyzer/crates
bors[bot] 9635d8bc44
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 <c.giguere42@gmail.com>
2020-04-09 18:07:28 +00:00
..
ra_arena Use resize_with 2020-03-31 09:02:12 -04:00
ra_assists Be consistent about token accesors 2020-04-09 18:48:13 +02:00
ra_cfg Update versions 2020-02-18 16:12:40 +02:00
ra_db Merge #3727 2020-03-26 17:09:32 +00:00
ra_flycheck Centralize defaults 2020-04-01 18:56:47 +02:00
ra_fmt Provide more complete AST accessors to support usage in rustc 2020-04-09 11:50:37 +02:00
ra_hir Move computation of missing fields into hir 2020-04-07 18:34:17 +02:00
ra_hir_def Be consistent about token accesors 2020-04-09 18:48:13 +02:00
ra_hir_expand Improve tt::Subtree debug print 2020-04-10 00:17:32 +08:00
ra_hir_ty Add _token suffix to token accessors 2020-04-09 18:25:36 +02:00
ra_ide Merge #3901 2020-04-09 18:07:28 +00:00
ra_ide_db Fix unnecessary braces warnings 2020-04-06 17:21:33 +03:00
ra_mbe Improve tt::Subtree debug print 2020-04-10 00:17:32 +08:00
ra_parser Parse correctly fn f<T>() where T: Fn() -> u8 + Send {} 2020-04-09 13:05:41 +02:00
ra_proc_macro Introduce ra_proc_macro_srv 2020-04-03 19:01:44 +08:00
ra_proc_macro_srv Remove unused func 2020-04-09 13:04:01 +08:00
ra_prof Fix race in the tests 2020-03-30 11:33:01 +02:00
ra_project_model Migrate to privacy as per review commets 2020-04-02 21:09:03 +03:00
ra_syntax Be consistent about token accesors 2020-04-09 18:48:13 +02:00
ra_text_edit Remove some TextUnit->usize escapees 2020-03-12 22:33:27 -04:00
ra_tt Improve tt::Subtree debug print 2020-04-10 00:17:32 +08:00
rust-analyzer fix cargo check config with custom command 2020-04-06 21:41:31 -07:00
stdx Check for eprintln on CI 2020-04-06 17:00:18 +02:00
test_utils Migrate tests .txt -> .rast 2020-04-06 14:04:26 +03:00