Jacob Pratt
9a88f9f74f
Rollup merge of #156664 - ManiSalahmand:fix-doc-comment-generic-tuple, r=petrochenkov
...
Avoid const generic recovery after doc comment in type
Fixes rust-lang/rust#122463 .
When parsing a generic argument, rustc may snapshot the parser state and retry a failed type parse as an unbraced const generic argument. For `Vec<(/// doc
f32, f32)>`, that recovery produces a misleading follow-up E0747 after the useful “expected type, found doc comment” diagnostic.
This skips that const-generic recovery path when type parsing stopped at a doc comment, and adds a regression test for the compiler diagnostic.
2026-05-18 13:52:56 +02:00
..
2026-05-15 04:34:51 +02:00
2026-04-15 20:03:07 +10:00
2026-05-17 01:27:37 +00:00
2026-05-08 14:10:56 +02:00
2026-05-15 20:11:42 +02:00
2026-05-12 17:09:19 +02:00
2026-05-07 22:22:56 +09:00
2026-05-10 16:43:01 +00:00
2026-05-04 16:28:58 +00:00
2026-05-17 01:27:37 +00:00
2026-05-12 18:53:35 +02:00
2026-05-12 17:09:19 +02:00
2026-05-15 12:34:03 -04:00
2026-05-17 15:52:36 +02:00
2026-05-17 15:52:37 +02:00
2026-05-17 01:27:37 +00:00
2026-05-13 08:47:29 +02:00
2026-05-14 16:51:08 +02:00
2026-04-27 10:58:30 +08:00
2026-05-04 16:28:58 +00:00
2026-05-08 15:10:33 +10:00
2026-05-07 20:23:37 +03:00
2026-05-12 17:09:19 +02:00
2026-05-17 01:27:37 +00:00
2026-05-15 20:11:47 +02:00
2026-05-08 15:10:33 +10:00
2026-05-07 22:23:36 +09:00
2026-05-17 15:52:35 +02:00
2026-05-02 17:41:30 +02:00
2026-05-13 20:29:15 +00:00
2026-05-08 15:10:33 +10:00
2026-05-11 21:32:42 +02:00
2026-05-11 16:28:51 -04:00
2026-03-04 06:10:42 +00:00
2026-05-17 15:52:37 +02:00
2026-05-16 21:16:35 +10:00
2026-05-11 16:28:51 -04:00
2026-02-24 12:03:17 +01:00
2026-05-08 15:22:40 +10:00
2026-05-14 16:28:50 +10:00
2026-05-17 15:52:37 +02:00
2026-05-14 16:51:08 +02:00
2026-05-17 01:27:37 +00:00
2026-05-17 15:52:43 +02:00
2026-05-12 21:58:50 +02:00
2026-05-11 21:32:42 +02:00
2026-05-18 13:52:56 +02:00
2026-05-03 03:24:52 +00:00
2026-05-17 15:52:37 +02:00
2026-05-14 16:28:50 +10:00
2026-05-13 20:04:42 +03:00
2026-05-15 04:34:51 +02:00
2026-05-05 12:36:39 +02:00
2026-05-07 02:06:18 +02:00
2026-05-18 13:52:55 +02:00
2026-05-12 21:58:50 +02:00
2026-04-08 21:09:07 +02:00
2026-05-13 11:46:37 +02:00
2026-05-12 17:09:19 +02:00
2026-05-08 15:22:40 +10:00
2026-05-14 19:06:32 +02:00
2026-05-05 12:39:51 +03:00
2026-05-17 16:12:40 -04:00
2026-05-12 20:45:13 +02:00
2026-05-17 01:27:37 +00:00
2026-05-17 15:52:34 +02:00
2026-05-12 21:58:50 +02:00
2026-04-30 16:53:10 +10:00