rust/compiler/rustc_parse
Jonathan Brouwer 1968df85fb
Rollup merge of #151171 - issue-141436, r=davidtwco
Do not recover from `Trait()` if generic list is unterminated

If we encounter `fn foo<T: Trait()`, the recovery logic would it as if `Trait` was intended to use the Fn-like trait syntax, but if we don't know for certain that we've parsed a full trait bound (`fn foo<T: Trait()>`), we bail from the recovery as more likely there could have been a missing closing `>` and the `(` corresponds to the start of the fn parameter list.

Fix rust-lang/rust#141436.
2026-01-19 20:53:23 +01:00
..
src Rollup merge of #151171 - issue-141436, r=davidtwco 2026-01-19 20:53:23 +01:00
Cargo.toml Update literal-escaper version to 0.0.7 2026-01-08 14:10:33 +01:00
messages.ftl feat: invisible character help string 2026-01-10 14:31:37 +00:00