We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0490c36 commit eacb629Copy full SHA for eacb629
src/comp/syntax/fold.rs
@@ -229,7 +229,8 @@ fn noop_fold_item_underscore(i: item_, fld: ast_fold) -> item_ {
229
ret alt i {
230
item_const(t, e) { item_const(fld.fold_ty(t), fld.fold_expr(e)) }
231
item_fn(decl, typms, body) {
232
- item_fn(fold_fn_decl(decl, fld), typms, fld.fold_block(body))
+ let body = fld.fold_block(body);
233
+ item_fn(fold_fn_decl(decl, fld), typms, body)
234
}
235
item_mod(m) { item_mod(fld.fold_mod(m)) }
236
item_native_mod(nm) { item_native_mod(fld.fold_native_mod(nm)) }
0 commit comments