@@ -203,7 +203,6 @@ pub trait AstWriter {
203203 consequent,
204204 alternative,
205205 ty,
206- range : _,
207206 } => {
208207 self . write_if_else (
209208 ast,
@@ -222,7 +221,7 @@ pub trait AstWriter {
222221 Node :: Loop { body, ty, range : _ } => {
223222 self . write_loop ( ast, nodeidx, body, newfunc, operators, input_wasm, ty) ?
224223 }
225- Node :: Block { body, ty, range : _ } => {
224+ Node :: Block { body, ty } => {
226225 self . write_block ( ast, nodeidx, body, newfunc, operators, input_wasm, ty) ?
227226 }
228227 Node :: Root ( body) => {
@@ -304,11 +303,10 @@ impl AstBuilder {
304303 consequent : then_branch,
305304 alternative : None ,
306305 ty : ty. expect ( "Missing if type" ) ,
307- range : frame_start..idx,
308306 } ) ;
309307 }
310308 State :: Else => {
311- let ( last_frame, ty, if_start ) = parse_context. pop_frame ( ) ?;
309+ let ( last_frame, ty, _if_start ) = parse_context. pop_frame ( ) ?;
312310 // Validate parent
313311 match last_frame {
314312 State :: If => { }
@@ -322,7 +320,6 @@ impl AstBuilder {
322320 consequent : then_branch,
323321 alternative : Some ( else_branch) ,
324322 ty : ty. expect ( "Missing if type" ) ,
325- range : if_start..idx,
326323 } ) ;
327324 }
328325 State :: Loop => {
@@ -342,7 +339,6 @@ impl AstBuilder {
342339 parse_context. push_node_to_current_parsing ( Node :: Block {
343340 body : children,
344341 ty : ty. expect ( "Missing block type for loop" ) ,
345- range : frame_start..idx,
346342 } ) ;
347343 }
348344 State :: Root => {
0 commit comments