Esteban Küber
1ce0fa98c7
Detect missing . in method chain in let bindings and statements
...
On parse errors where an ident is found where one wasn't expected, see if the next elements might have been meant as method call or field access.
```
error: expected one of `.`, `;`, `?`, `else`, or an operator, found `map`
--> $DIR/missing-dot-on-statement-expression.rs:7:29
|
LL | let _ = [1, 2, 3].iter()map(|x| x);
| ^^^ expected one of `.`, `;`, `?`, `else`, or an operator
|
help: you might have meant to write a method call
|
LL | let _ = [1, 2, 3].iter().map(|x| x);
| +
```
2024-12-21 02:46:33 +00:00
..
2024-12-03 08:56:33 +00:00
2024-12-18 11:01:54 +01:00
2024-10-21 15:22:17 +01:00
2024-12-18 22:56:53 +08:00
2024-10-07 11:15:04 -07:00
2024-12-18 13:38:53 +11:00
2024-12-18 13:38:53 +11:00
2024-12-18 22:56:53 +08:00
2024-12-16 19:08:19 +01:00
2024-12-18 13:38:53 +11:00
2024-11-12 13:38:58 +00:00
2024-12-19 11:25:43 +00:00
2024-12-19 16:05:41 +11:00
2024-12-19 16:48:07 +08:00
2024-12-18 23:23:44 +08:00
2024-12-18 11:01:54 +01:00
2024-12-19 16:48:07 +08:00
2024-12-19 16:48:07 +08:00
2024-12-13 10:21:22 +00:00
2024-12-18 22:56:56 +08:00
2024-12-13 00:37:51 +00:00
2024-11-12 13:38:58 +00:00
2024-12-18 23:23:44 +08:00
2024-12-19 16:05:41 +11:00
2024-12-18 07:10:53 +01:00
2024-10-19 22:32:38 +08:00
2024-09-26 19:51:14 +00:00
2024-09-22 19:11:29 -04:00
2024-12-18 13:38:53 +11:00
2024-12-19 11:25:43 +00:00
2024-12-18 13:38:53 +11:00
2024-12-19 16:48:10 +08:00
2024-12-18 13:38:53 +11:00
2024-12-09 08:53:33 +11:00
2024-11-22 10:54:22 +00:00
2024-12-18 13:38:53 +11:00
2024-12-18 13:38:53 +11:00
2024-12-09 06:23:59 -08:00
2024-12-19 08:33:20 +00:00
2024-12-18 13:38:53 +11:00
2024-12-12 02:34:06 +00:00
2024-09-22 19:11:29 -04:00
2024-12-18 13:38:53 +11:00
2024-12-18 02:56:38 +00:00
2024-12-19 11:25:43 +00:00
2024-12-19 15:58:08 +00:00
2024-12-18 22:57:23 +00:00
2024-12-19 16:48:07 +08:00
2024-12-18 13:38:53 +11:00
2024-12-18 16:35:05 +01:00
2024-12-21 02:46:33 +00:00
2024-10-14 23:22:51 +02:00
2024-12-18 07:10:55 +01:00
2024-11-23 13:52:54 +01:00
2024-12-18 13:38:53 +11:00
2024-12-13 16:36:38 +00:00
2024-12-18 13:38:53 +11:00
2024-12-18 21:38:10 -05:00
2024-12-10 19:50:47 +00:00
2024-10-16 15:44:16 +02:00
2024-12-18 22:56:56 +08:00
2024-12-18 11:01:54 +01:00
2024-12-18 20:21:03 +11:00
2024-12-18 13:38:53 +11:00
2024-12-18 11:01:54 +01:00
2024-12-19 08:33:20 +00:00
2024-11-23 05:27:45 +00:00
2024-12-18 11:01:54 +01:00
2024-12-18 11:01:54 +01:00
2024-12-18 21:38:08 -05:00
2024-10-22 23:13:04 +02:00
2024-12-18 11:01:54 +01:00