diff options
| author | r0cky <mu001999@outlook.com> | 2023-08-03 08:56:31 +0000 |
|---|---|---|
| committer | r0cky <mu001999@outlook.com> | 2023-08-03 08:56:31 +0000 |
| commit | 8c8af6cf99d6a54ece11d21c15e909aef2b60552 (patch) | |
| tree | 849558f48003534aeb92f5c8697536a7bac7f54a /compiler/rustc_parse/src/parser/stmt.rs | |
| parent | 41e85c3d2369ebc44c19c6009a061b64d43672ee (diff) | |
| download | rust-8c8af6cf99d6a54ece11d21c15e909aef2b60552.tar.gz rust-8c8af6cf99d6a54ece11d21c15e909aef2b60552.zip | |
Avoid too many expected symbols and reduce `None`s
Diffstat (limited to 'compiler/rustc_parse/src/parser/stmt.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/stmt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/stmt.rs b/compiler/rustc_parse/src/parser/stmt.rs index 2c08e984be5..9fcf51a04ec 100644 --- a/compiler/rustc_parse/src/parser/stmt.rs +++ b/compiler/rustc_parse/src/parser/stmt.rs @@ -149,7 +149,7 @@ impl<'a> Parser<'a> { fn parse_stmt_path_start(&mut self, lo: Span, attrs: AttrWrapper) -> PResult<'a, Stmt> { let stmt = self.collect_tokens_trailing_token(attrs, ForceCollect::No, |this, attrs| { - let path = this.parse_path(PathStyle::Expr, None)?; + let path = this.parse_path(PathStyle::Expr)?; if this.eat(&token::Not) { let stmt_mac = this.parse_stmt_mac(lo, attrs, path)?; |
