@@ -182,7 +182,7 @@ impl<T: HasTokens> HasTokens for Option<T> {
182
182
impl HasTokens for StmtKind {
183
183
fn tokens ( & self ) -> Option < & LazyAttrTokenStream > {
184
184
match self {
185
- StmtKind :: Local ( local) => local. tokens . as_ref ( ) ,
185
+ StmtKind :: Let ( local) => local. tokens . as_ref ( ) ,
186
186
StmtKind :: Item ( item) => item. tokens ( ) ,
187
187
StmtKind :: Expr ( expr) | StmtKind :: Semi ( expr) => expr. tokens ( ) ,
188
188
StmtKind :: Empty => return None ,
@@ -191,7 +191,7 @@ impl HasTokens for StmtKind {
191
191
}
192
192
fn tokens_mut ( & mut self ) -> Option < & mut Option < LazyAttrTokenStream > > {
193
193
match self {
194
- StmtKind :: Local ( local) => Some ( & mut local. tokens ) ,
194
+ StmtKind :: Let ( local) => Some ( & mut local. tokens ) ,
195
195
StmtKind :: Item ( item) => item. tokens_mut ( ) ,
196
196
StmtKind :: Expr ( expr) | StmtKind :: Semi ( expr) => expr. tokens_mut ( ) ,
197
197
StmtKind :: Empty => return None ,
@@ -355,7 +355,7 @@ impl HasAttrs for StmtKind {
355
355
356
356
fn attrs ( & self ) -> & [ Attribute ] {
357
357
match self {
358
- StmtKind :: Local ( local) => & local. attrs ,
358
+ StmtKind :: Let ( local) => & local. attrs ,
359
359
StmtKind :: Expr ( expr) | StmtKind :: Semi ( expr) => expr. attrs ( ) ,
360
360
StmtKind :: Item ( item) => item. attrs ( ) ,
361
361
StmtKind :: Empty => & [ ] ,
@@ -365,7 +365,7 @@ impl HasAttrs for StmtKind {
365
365
366
366
fn visit_attrs ( & mut self , f : impl FnOnce ( & mut AttrVec ) ) {
367
367
match self {
368
- StmtKind :: Local ( local) => f ( & mut local. attrs ) ,
368
+ StmtKind :: Let ( local) => f ( & mut local. attrs ) ,
369
369
StmtKind :: Expr ( expr) | StmtKind :: Semi ( expr) => expr. visit_attrs ( f) ,
370
370
StmtKind :: Item ( item) => item. visit_attrs ( f) ,
371
371
StmtKind :: Empty => { }
0 commit comments