rust-analyzer/crates
bors[bot] bf1369cdef Merge #1606
1606: Add `if let`, `while let` and match arm inlay hints r=matklad a=SomeoneToIgnore

<img width="693" alt="image" src="https://user-images.githubusercontent.com/2690773/62013363-152f1d80-b19a-11e9-90ea-07568757baa2.png">

Add more inline hints support.
Looks like `while let` type inference support is missing currently, so the corresponding hint tests lack the actual results.

I've also could not find a good way to distinguish between `a` and `b` pats in the following expressions:
`if let Some(Test { a: None, b: y }) = &test {};`

In this case we don't need to add a hint for first pat (`a: None`), since it's matched against the particular enum variant and need a hint for `y`, since it's a new variable.
But both `a` and `b` are `BIND_PAT` with similar contents, so looks like there's nothing I can check for to find any differences.

I don't display any hints for such cases now, to avoid confusion, but would be nice to know if there's a way to fix this behavior.

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
2019-07-29 12:30:39 +00:00
..
gen_lsp_server flexi_logger 0.14 2019-07-22 13:13:55 -04:00
ra_arena allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ra_assists streamline API 2019-07-21 13:28:58 +03:00
ra_batch Remove unused dependencies 2019-07-09 00:28:00 +09:00
ra_cli Make Analysis api cancellable 2019-07-25 20:22:41 +03:00
ra_db make Parse generic 2019-07-18 22:55:04 +03:00
ra_fmt align SyntaxText API with upstream 2019-07-20 16:52:11 +03:00
ra_hir Fixed request changes. 2019-07-29 15:16:58 +03:00
ra_ide_api Support destructuring patterns 2019-07-29 00:33:10 +03:00
ra_lsp_server Support destructuring patterns 2019-07-29 00:33:10 +03:00
ra_mbe switch to upstream rowan's API 2019-07-20 20:12:06 +03:00
ra_parser fix: parse box syntax inside parentheses 2019-07-22 20:52:10 +08:00
ra_prof jemallocator 0.3 2019-07-17 10:58:17 -04:00
ra_project_model Remove unused dependencies 2019-07-09 00:28:00 +09:00
ra_syntax move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
ra_text_edit allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ra_tools it's a good idea to build extension before installing it 2019-07-27 23:02:03 +03:00
ra_tt allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
test_utils Remove unused dependencies 2019-07-09 00:28:00 +09:00
thread_worker Fix clippy::single_match 2019-06-04 18:05:07 -04:00