@@ -182,7 +182,7 @@ impl<T: HasTokens> HasTokens for Option<T> {
182182impl HasTokens for StmtKind {
183183 fn tokens ( & self ) -> Option < & LazyAttrTokenStream > {
184184 match self {
185- StmtKind :: Local ( local) => local. tokens . as_ref ( ) ,
185+ StmtKind :: Let ( local) => local. tokens . as_ref ( ) ,
186186 StmtKind :: Item ( item) => item. tokens ( ) ,
187187 StmtKind :: Expr ( expr) | StmtKind :: Semi ( expr) => expr. tokens ( ) ,
188188 StmtKind :: Empty => return None ,
@@ -191,7 +191,7 @@ impl HasTokens for StmtKind {
191191 }
192192 fn tokens_mut ( & mut self ) -> Option < & mut Option < LazyAttrTokenStream > > {
193193 match self {
194- StmtKind :: Local ( local) => Some ( & mut local. tokens ) ,
194+ StmtKind :: Let ( local) => Some ( & mut local. tokens ) ,
195195 StmtKind :: Item ( item) => item. tokens_mut ( ) ,
196196 StmtKind :: Expr ( expr) | StmtKind :: Semi ( expr) => expr. tokens_mut ( ) ,
197197 StmtKind :: Empty => return None ,
@@ -355,7 +355,7 @@ impl HasAttrs for StmtKind {
355355
356356 fn attrs ( & self ) -> & [ Attribute ] {
357357 match self {
358- StmtKind :: Local ( local) => & local. attrs ,
358+ StmtKind :: Let ( local) => & local. attrs ,
359359 StmtKind :: Expr ( expr) | StmtKind :: Semi ( expr) => expr. attrs ( ) ,
360360 StmtKind :: Item ( item) => item. attrs ( ) ,
361361 StmtKind :: Empty => & [ ] ,
@@ -365,7 +365,7 @@ impl HasAttrs for StmtKind {
365365
366366 fn visit_attrs ( & mut self , f : impl FnOnce ( & mut AttrVec ) ) {
367367 match self {
368- StmtKind :: Local ( local) => f ( & mut local. attrs ) ,
368+ StmtKind :: Let ( local) => f ( & mut local. attrs ) ,
369369 StmtKind :: Expr ( expr) | StmtKind :: Semi ( expr) => expr. visit_attrs ( f) ,
370370 StmtKind :: Item ( item) => item. visit_attrs ( f) ,
371371 StmtKind :: Empty => { }
0 commit comments