Files
rust/compiler
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-07 22:22:56 +09:00
2026-05-04 16:28:58 +00:00
2026-05-04 16:28:58 +00:00
2026-05-07 20:23:37 +03:00
2026-05-12 17:09:19 +02:00
2026-05-13 20:29:15 +00:00
2026-05-11 21:32:42 +02:00
2026-05-16 21:16:35 +10:00
2026-05-12 21:58:50 +02:00
2026-05-11 21:32:42 +02:00
2026-05-12 21:58:50 +02:00
2026-04-08 21:09:07 +02:00
2026-05-12 17:09:19 +02:00
2026-05-12 21:58:50 +02:00