diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2024-12-02 10:06:26 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2024-12-02 10:28:58 +0000 |
| commit | 778321d1559cfbfcf1868165b053cf73298dadfb (patch) | |
| tree | 00259271244e7be6cf42ccab1bdbcdf4dcdd244a /compiler/rustc_parse/src/parser | |
| parent | caa81728c37f5ccfa9a0979574b9272a67f8a286 (diff) | |
| download | rust-778321d1559cfbfcf1868165b053cf73298dadfb.tar.gz rust-778321d1559cfbfcf1868165b053cf73298dadfb.zip | |
Change `AttrArgs::Eq` into a struct variant
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index 0ed8d152d2d..37556c064d8 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -1376,7 +1376,7 @@ impl<'a> Parser<'a> { AttrArgs::Delimited(args) } else if self.eat(&token::Eq) { let eq_span = self.prev_token.span; - AttrArgs::Eq(eq_span, AttrArgsEq::Ast(self.parse_expr_force_collect()?)) + AttrArgs::Eq { eq_span, value: AttrArgsEq::Ast(self.parse_expr_force_collect()?) } } else { AttrArgs::Empty }) |
