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
..
2019-07-22 13:13:55 -04:00
2019-07-04 23:09:09 +03:00
2019-07-21 13:28:58 +03:00
2019-07-09 00:28:00 +09:00
2019-07-25 20:22:41 +03:00
2019-07-18 22:55:04 +03:00
2019-07-20 16:52:11 +03:00
2019-07-29 15:16:58 +03:00
2019-07-29 00:33:10 +03:00
2019-07-20 20:12:06 +03:00
2019-07-17 10:58:17 -04:00
2019-07-24 12:49:19 +03:00
2019-07-04 23:09:09 +03:00
2019-07-09 00:28:00 +09:00
2019-06-04 18:05:07 -04:00