File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ pub(crate) fn get_attrs_from_stmt(stmt: &ast::Stmt) -> &[ast::Attribute] {
2626
2727pub ( crate ) fn get_span_without_attrs ( stmt : & ast:: Stmt ) -> Span {
2828 match stmt. kind {
29- ast:: StmtKind :: Local ( ref local) => local. span ,
29+ ast:: StmtKind :: Let ( ref local) => local. span ,
3030 ast:: StmtKind :: Item ( ref item) => item. span ,
3131 ast:: StmtKind :: Expr ( ref expr) | ast:: StmtKind :: Semi ( ref expr) => expr. span ,
3232 ast:: StmtKind :: MacCall ( ref mac_stmt) => mac_stmt. mac . span ( ) ,
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ implement_spanned!(ast::Local);
6161impl Spanned for ast:: Stmt {
6262 fn span ( & self ) -> Span {
6363 match self . kind {
64- ast:: StmtKind :: Local ( ref local) => mk_sp ( local. span ( ) . lo ( ) , self . span . hi ( ) ) ,
64+ ast:: StmtKind :: Let ( ref local) => mk_sp ( local. span ( ) . lo ( ) , self . span . hi ( ) ) ,
6565 ast:: StmtKind :: Item ( ref item) => mk_sp ( item. span ( ) . lo ( ) , self . span . hi ( ) ) ,
6666 ast:: StmtKind :: Expr ( ref expr) | ast:: StmtKind :: Semi ( ref expr) => {
6767 mk_sp ( expr. span ( ) . lo ( ) , self . span . hi ( ) )
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ fn format_stmt(
115115 skip_out_of_file_lines_range ! ( context, stmt. span( ) ) ;
116116
117117 let result = match stmt. kind {
118- ast:: StmtKind :: Local ( ref local) => local. rewrite ( context, shape) ,
118+ ast:: StmtKind :: Let ( ref local) => local. rewrite ( context, shape) ,
119119 ast:: StmtKind :: Expr ( ref ex) | ast:: StmtKind :: Semi ( ref ex) => {
120120 let suffix = if semicolon_for_stmt ( context, stmt, is_last_expr) {
121121 ";"
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
150150 self . visit_item ( item) ;
151151 self . last_pos = stmt. span ( ) . hi ( ) ;
152152 }
153- ast:: StmtKind :: Local ( ..) | ast:: StmtKind :: Expr ( ..) | ast:: StmtKind :: Semi ( ..) => {
153+ ast:: StmtKind :: Let ( ..) | ast:: StmtKind :: Expr ( ..) | ast:: StmtKind :: Semi ( ..) => {
154154 let attrs = get_attrs_from_stmt ( stmt. as_ast_node ( ) ) ;
155155 if contains_skip ( attrs) {
156156 self . push_skipped_with_span (
You can’t perform that action at this time.
0 commit comments