about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2024-12-02 10:06:26 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2024-12-02 10:28:58 +0000
commit778321d1559cfbfcf1868165b053cf73298dadfb (patch)
tree00259271244e7be6cf42ccab1bdbcdf4dcdd244a /compiler/rustc_parse/src/parser
parentcaa81728c37f5ccfa9a0979574b9272a67f8a286 (diff)
downloadrust-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.rs2
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
         })