diff --git a/Cargo.toml b/Cargo.toml index d48695231..776ab80d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ with-syntex = ["syntex_syntax"] unstable-testing = ["clippy", "compiletest_rs"] [dependencies] -syntex_syntax = { version = "^0.54.0", optional = true } +syntex_syntax = { version = "^0.55.0", optional = true } clippy = { version = "0.*", optional = true } compiletest_rs = { version = "^0.2.0", optional = true } diff --git a/src/expr.rs b/src/expr.rs index 494495433..372e8e3c1 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -1110,6 +1110,7 @@ impl Invoke> for ExprStructFieldBuilder expr: expr, span: self.builder.span, is_shorthand: false, + attrs: Vec::new().into(), }; self.builder.fields.push(field); self.builder diff --git a/src/pat.rs b/src/pat.rs index ce74fe7bb..0fa473e27 100644 --- a/src/pat.rs +++ b/src/pat.rs @@ -432,6 +432,7 @@ impl PatStructPathBuilder ident: id, pat: pat, is_shorthand: true, + attrs: Vec::new().into(), }) } @@ -446,6 +447,7 @@ impl PatStructPathBuilder ident: id, pat: pat, is_shorthand: true, + attrs: Vec::new().into(), }) } @@ -475,6 +477,7 @@ impl Invoke> for PatStructFieldBuilder ident: self.id, pat: pat, is_shorthand: false, + attrs: Vec::new().into(), }) } }