diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2021-05-15 14:56:28 -0700 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2021-11-24 20:02:09 +0000 |
| commit | 7190bc3097a3f84c9d0e07d149eba4b00e4f8917 (patch) | |
| tree | c3c03074b83b4ca2c87fb6622ad3c7f0fd8ff393 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 311fa1f14dd8ffbbe83b229a94b17f7f1ecaf33b (diff) | |
| download | rust-7190bc3097a3f84c9d0e07d149eba4b00e4f8917.tar.gz rust-7190bc3097a3f84c9d0e07d149eba4b00e4f8917.zip | |
Account for incorrect `impl Foo<const N: ty> {}` syntax
Fix #84946
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 0c8c45410bd..54f28ea0058 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -1150,7 +1150,7 @@ impl<'a> Parser<'a> { } let fn_span_lo = self.token.span; - let mut segment = self.parse_path_segment(PathStyle::Expr)?; + let mut segment = self.parse_path_segment(PathStyle::Expr, None)?; self.check_trailing_angle_brackets(&segment, &[&token::OpenDelim(token::Paren)]); self.check_turbofish_missing_angle_brackets(&mut segment); |
