@@ -64,7 +64,7 @@ fn func_stmt(context: &Context, stmt: &Node<fe::FuncStmt>) -> yul::Statement {
6464 fe:: FuncStmt :: VarDecl { .. } => declarations:: var_decl ( context, stmt) ,
6565 fe:: FuncStmt :: Assign { .. } => assignments:: assign ( context, stmt) ,
6666 fe:: FuncStmt :: Emit { .. } => emit ( context, stmt) ,
67- fe:: FuncStmt :: AugAssign { .. } => unimplemented ! ( ) ,
67+ fe:: FuncStmt :: AugAssign { .. } => panic ! ( "AugAssign should be lowered" ) ,
6868 fe:: FuncStmt :: For { .. } => for_loop ( context, stmt) ,
6969 fe:: FuncStmt :: While { .. } => while_loop ( context, stmt) ,
7070 fe:: FuncStmt :: If { .. } => if_statement ( context, stmt) ,
@@ -80,7 +80,7 @@ fn func_stmt(context: &Context, stmt: &Node<fe::FuncStmt>) -> yul::Statement {
8080fn for_loop ( context : & Context , stmt : & Node < fe:: FuncStmt > ) -> yul:: Statement {
8181 if let fe:: FuncStmt :: For { target, iter, body } = & stmt. kind {
8282 let iterator = expressions:: expr ( context, iter) ;
83- let target_var = names:: var_name ( & expressions :: expr_name_string ( target) ) ;
83+ let target_var = names:: var_name ( & target. kind ) ;
8484 let yul_body = multiple_func_stmt ( context, body) ;
8585 return if let Some ( ExpressionAttributes {
8686 typ : Type :: Array ( array) ,
0 commit comments