Esteban Küber
04fe839177
Increase accuracy of if condition misparse suggestion
...
Look at the expression that was parsed when trying to recover from a bad `if` condition to determine what was likely intended by the user beyond "maybe this was meant to be an `else` body".
```
error: expected `{`, found `map`
--> $DIR/missing-dot-on-if-condition-expression-fixable.rs:4:30
|
LL | for _ in [1, 2, 3].iter()map(|x| x) {}
| ^^^ expected `{`
|
help: you might have meant to write a method call
|
LL | for _ in [1, 2, 3].iter().map(|x| x) {}
| +
```
2024-11-16 20:03:31 +00:00
..
2024-09-13 14:10:56 +03:00
2024-09-27 00:45:02 +00:00
2024-09-13 14:10:56 +03:00
2024-10-29 16:26:57 +00:00
2024-09-13 14:10:56 +03:00
2024-09-13 14:10:56 +03:00
2024-09-22 13:55:06 -04:00
2024-09-30 20:43:51 +03:00
2024-09-13 14:10:56 +03:00
2024-09-13 14:10:56 +03:00
2024-09-13 14:10:56 +03:00
2024-09-25 13:26:48 +02:00
2024-09-25 13:26:48 +02:00
2024-08-22 02:20:05 +00:00
2024-10-29 16:26:57 +00:00
2024-10-29 16:26:57 +00:00
2024-10-29 16:26:57 +00:00
2024-09-22 13:55:06 -04:00
2024-10-26 11:35:56 +08:00
2024-09-25 13:26:48 +02:00
2024-09-25 13:26:48 +02:00
2024-10-04 14:06:48 +02:00
2024-10-04 14:06:48 +02:00
2024-10-16 13:44:56 -04:00
2024-11-02 03:08:04 +00:00
2024-09-25 13:26:48 +02:00
2024-10-30 23:42:50 +00:00
2024-10-30 23:42:50 +00:00
2024-08-22 02:20:05 +00:00
2024-09-27 00:45:02 +00:00
2024-09-13 14:10:56 +03:00
2024-09-13 14:10:56 +03:00
2024-11-16 20:03:31 +00:00
2024-10-29 16:26:57 +00:00
2024-09-27 00:45:02 +00:00
2024-09-27 00:45:02 +00:00
2024-11-02 03:08:04 +00:00
2024-10-15 13:11:00 +02:00
2024-09-22 13:55:06 -04:00
2024-09-25 13:26:48 +02:00
2024-11-03 13:55:52 -08:00
2024-11-03 13:55:52 -08:00
2024-09-13 14:10:56 +03:00
2024-09-13 14:10:56 +03:00
2024-10-10 01:13:29 +02:00
2024-09-25 13:26:48 +02:00
2024-08-28 22:55:57 +09:00
2024-09-27 00:45:02 +00:00
2024-11-02 03:08:04 +00:00
2024-10-16 13:44:56 -04:00
2024-09-26 17:17:11 +00:00
2024-10-09 20:58:27 +11:00
2024-09-25 13:26:48 +02:00