rust/compiler/rustc_parse/src/parser
Matthias Krüger c86e13f330
Rollup merge of #127350 - veera-sivarajan:bugfix-126311, r=lcnr
Parser: Suggest Placing the Return Type After Function Parameters

Fixes #126311

This PR suggests placing the return type after the function parameters when it's misplaced after a `where` clause.

This also tangentially improves diagnostics for cases like [this](86d6f1312a/tests/ui/parser/issues/misplaced-return-type-without-where-issue-126311.rs (L1C1-L1C28)) and adds doc comments for `parser::AllowPlus`.
2024-07-19 10:48:03 +02:00
..
mut_visit Specialize assert_pred. 2024-06-06 08:26:54 +10:00
tokenstream Move some tests from rustc_expand to rustc_parse. 2024-05-06 09:06:02 +10:00
attr.rs Simplify ReplaceRange. 2024-07-07 15:58:36 +10:00
attr_wrapper.rs Remove TrailingToken. 2024-07-18 17:28:49 +10:00
diagnostics.rs Rollup merge of #127350 - veera-sivarajan:bugfix-126311, r=lcnr 2024-07-19 10:48:03 +02:00
expr.rs Remove TrailingToken. 2024-07-18 17:28:49 +10:00
generics.rs Remove TrailingToken. 2024-07-18 17:28:49 +10:00
item.rs Rollup merge of #127350 - veera-sivarajan:bugfix-126311, r=lcnr 2024-07-19 10:48:03 +02:00
mod.rs Rollup merge of #127350 - veera-sivarajan:bugfix-126311, r=lcnr 2024-07-19 10:48:03 +02:00
nonterminal.rs Deny keyword lifetimes pre-expansion 2024-07-16 12:06:25 -04:00
pat.rs Remove TrailingToken. 2024-07-18 17:28:49 +10:00
path.rs Use more accurate span for : to :: suggestion 2024-07-12 03:02:58 +00:00
stmt.rs Remove TrailingToken. 2024-07-18 17:28:49 +10:00
tests.rs Fix DebugParser. 2024-07-13 16:42:00 +10:00
ty.rs Rollup merge of #127350 - veera-sivarajan:bugfix-126311, r=lcnr 2024-07-19 10:48:03 +02:00