libsyntax: Remove all @str from the AST

This commit is contained in:
Patrick Walton
2014-01-15 18:30:40 -08:00
committed by Huon Wilson
parent b496d7bec2
commit f9af11d6cc
7 changed files with 46 additions and 39 deletions

View File

@@ -814,8 +814,12 @@ pub fn noop_fold_expr<T: Folder>(e: @Expr, folder: &mut T) -> @Expr {
}
ExprInlineAsm(ref a) => {
ExprInlineAsm(InlineAsm {
inputs: a.inputs.map(|&(c, input)| (c, folder.fold_expr(input))),
outputs: a.outputs.map(|&(c, out)| (c, folder.fold_expr(out))),
inputs: a.inputs.map(|&(ref c, input)| {
((*c).clone(), folder.fold_expr(input))
}),
outputs: a.outputs.map(|&(ref c, out)| {
((*c).clone(), folder.fold_expr(out))
}),
.. (*a).clone()
})
}