diff options
| author | Steven Fackler <sfackler@gmail.com> | 2013-12-27 20:34:51 -0700 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2013-12-29 23:41:05 -0800 |
| commit | 3965dddf49aa30a69614e9f42a73960f1be4790e (patch) | |
| tree | c7706b24bd9b55e2f4deb3a88a593d25f289a06e /src/libsyntax/ext/build.rs | |
| parent | 933def408c48e9b20c478cf4cad9ae2d20b3c5df (diff) | |
Make ast_fold take &mut self
Diffstat (limited to 'src/libsyntax/ext/build.rs')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index 007c06938c6..f5c3c1792c9 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -908,7 +908,7 @@ struct Duplicator<'a> { } impl<'a> ast_fold for Duplicator<'a> { - fn new_id(&self, _: NodeId) -> NodeId { + fn new_id(&mut self, _: NodeId) -> NodeId { ast::DUMMY_NODE_ID } } @@ -925,7 +925,7 @@ pub trait Duplicate { impl Duplicate for @ast::Expr { fn duplicate(&self, cx: &ExtCtxt) -> @ast::Expr { - let folder = Duplicator { + let mut folder = Duplicator { cx: cx, }; folder.fold_expr(*self) |
