bors[bot] a423b307e6
Merge #9744
9744: fix: Annotate type hints for pattern name ranges instead of the pattern itself r=Veykril a=Veykril

The current type hints do not go well with `bindings_after_at` which is likely to land with 1.56(https://github.com/rust-lang/rust/pull/85305 🎉very excited for this), hence annotate the names of ident patterns instead of the entire pattern.

This changes where the typehints go for ident patterns that use @ bindings, some example comparisons:

Before:
![Code_82ILMppkve](https://user-images.githubusercontent.com/3757771/127741276-e1dd173b-2964-4df0-abae-860283b2e1be.png)
After:
![Code_tPttN2rJpw](https://user-images.githubusercontent.com/3757771/127741277-e7fc2836-4f31-4c45-a3a9-69cbff3d52d9.png)

This change has no visible effect on patterns without ``@`` bindings.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-07-31 13:41:04 +00:00
..
2021-07-23 19:57:16 +02:00
2021-07-28 19:22:59 +02:00
2021-07-28 12:07:25 +00:00
2021-07-19 13:26:11 +01:00
2021-07-29 16:14:10 +00:00
2021-07-31 14:29:15 +02:00
2021-07-05 14:19:41 +03:00
2021-07-19 13:26:11 +01:00
2021-07-05 14:19:41 +03:00
2021-07-30 13:12:52 +02:00
2021-07-18 10:25:14 +03:00
2021-07-31 14:29:15 +02:00
2021-07-31 11:25:03 +03:00
2021-07-09 11:01:55 -04:00
2021-07-08 16:43:39 +02:00
2021-07-31 12:05:41 +00:00
2021-07-05 14:19:41 +03:00
2021-07-05 14:19:41 +03:00
2021-07-05 14:19:41 +03:00
2021-07-28 10:09:58 -07:00