about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/stmt.rs
diff options
context:
space:
mode:
authorr0cky <mu001999@outlook.com>2023-08-03 08:56:31 +0000
committerr0cky <mu001999@outlook.com>2023-08-03 08:56:31 +0000
commit8c8af6cf99d6a54ece11d21c15e909aef2b60552 (patch)
tree849558f48003534aeb92f5c8697536a7bac7f54a /compiler/rustc_parse/src/parser/stmt.rs
parent41e85c3d2369ebc44c19c6009a061b64d43672ee (diff)
downloadrust-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.rs2
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)?;