We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Parser::parse_for_head
1 parent c0bb3b9 commit 09105c3Copy full SHA for 09105c3
compiler/rustc_parse/src/parser/expr.rs
@@ -2910,6 +2910,7 @@ impl<'a> Parser<'a> {
2910
}
2911
2912
2913
+ // Public to use it for custom `for` expressions in rustfmt forks like https://github.com/tucant/rustfmt
2914
fn parse_for_head(&mut self) -> PResult<'a, (Box<Pat>, Box<Expr>)> {
2915
let begin_paren = if self.token == token::OpenParen {
2916
// Record whether we are about to parse `for (`.
0 commit comments