Esteban Küber bde2dfb127 Detect more cases of = to : typo
When a `Local` is fully parsed, but not followed by a `;`, keep the `:` span
arround and mention it. If the type could continue being parsed as an
expression, suggest replacing the `:` with a `=`.

```
error: expected one of `!`, `+`, `->`, `::`, `;`, or `=`, found `.`
 --> file.rs:2:32
  |
2 |     let _: std::env::temp_dir().join("foo");
  |          -                     ^ expected one of `!`, `+`, `->`, `::`, `;`, or `=`
  |          |
  |          while parsing the type for `_`
  |          help: use `=` if you meant to assign
```

Fix #119665.
2024-03-01 02:03:00 +00:00
..
2023-08-01 23:30:40 +08:00
2023-08-01 23:30:40 +08:00
2023-05-02 22:36:24 +00:00
2023-05-02 22:36:24 +00:00
2023-10-24 21:27:05 +00:00
2023-05-01 16:15:13 +08:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-05-01 16:15:13 +08:00
2023-05-01 16:15:13 +08:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
fmt
2023-05-13 19:40:17 +08:00
2023-10-24 21:27:05 +00:00
2023-10-24 21:27:05 +00:00
2023-12-02 23:47:39 +08:00
2023-12-02 23:47:39 +08:00
2024-01-13 12:46:58 -05:00