Esteban Küber
20de5c762d
Move where doc comment meant as comment check
...
The new place makes more sense and covers more cases beyond individual
statements.
```
error: expected one of `.`, `;`, `?`, `else`, or an operator, found doc comment `//!foo
--> $DIR/doc-comment-in-stmt.rs:25:22
|
LL | let y = x.max(1) //!foo
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected one of `.`, `;`, `?`, `else`, or an operator
|
help: add a space before `!` to write a regular comment
|
LL | let y = x.max(1) // !foo
| +
```
Fix #65329 .
2023-10-20 02:54:45 +00:00
..
2023-10-16 15:38:08 -07:00
2023-10-15 13:23:55 +00:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-17 04:41:20 +00:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-18 06:19:04 +00:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-18 23:44:36 +11:00
2023-10-15 13:23:55 +00:00
2023-10-18 09:57:07 +00:00
2023-10-18 03:55:36 +00:00
2023-10-16 15:38:08 -07:00
2023-10-18 07:45:56 +00:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-16 06:26:20 +02:00
2023-10-16 15:38:08 -07:00
2023-10-16 15:38:08 -07:00
2023-10-18 15:17:48 +00:00
2023-10-11 10:46:55 +11:00
2023-10-18 15:17:48 +00:00
2023-10-13 00:09:30 +00:00
2023-10-18 11:55:41 +00:00
2023-10-17 19:53:51 -04:00
2023-10-18 11:55:41 +00:00
2023-10-14 07:29:08 +00:00
2023-10-10 09:39:47 +08:00
2023-10-13 08:59:36 +00:00
2023-10-17 19:53:51 -04:00
2023-10-18 18:48:34 +00:00
2023-10-18 21:20:29 +11:00
2023-10-13 08:59:36 +00:00
2023-10-18 23:44:34 +11:00
2023-10-20 02:54:45 +00:00
2023-10-17 19:53:51 -04:00
2023-10-13 08:59:36 +00:00
2023-10-13 08:59:36 +00:00
2023-10-13 08:59:36 +00:00
2023-10-17 19:53:51 -04:00
2023-10-16 12:01:24 -07:00
2023-10-16 19:50:29 -07:00
2023-10-17 18:02:57 +02:00
2023-10-16 08:17:23 +11:00
2023-10-18 15:17:48 +00:00
2023-10-13 08:59:36 +00:00
2023-10-17 16:26:37 +11:00
2023-10-16 12:01:24 -07:00