diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-11-06 09:32:37 -0800 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-11-25 17:41:54 -0800 |
| commit | b299c2b57db90025cbf59d4b5152c9c37db6bc63 (patch) | |
| tree | f3476a915920ef8a42761cb740dc6f4e1f64844f /src/libsyntax/ext | |
| parent | a86f72d9a2adc6d65f2ba0990caca35c1a3f622d (diff) | |
| download | rust-b299c2b57db90025cbf59d4b5152c9c37db6bc63.tar.gz rust-b299c2b57db90025cbf59d4b5152c9c37db6bc63.zip | |
Fallout from stabilization
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/base.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/format.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 1cbc2b98c93..8d0d399fa31 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -210,7 +210,7 @@ pub struct MacItems { } impl MacItems { - pub fn new<I: Iterator<P<ast::Item>>>(mut it: I) -> Box<MacResult+'static> { + pub fn new<I: Iterator<P<ast::Item>>>(it: I) -> Box<MacResult+'static> { box MacItems { items: it.collect() } as Box<MacResult+'static> } } diff --git a/src/libsyntax/ext/format.rs b/src/libsyntax/ext/format.rs index b04a800a32d..490246f8246 100644 --- a/src/libsyntax/ext/format.rs +++ b/src/libsyntax/ext/format.rs @@ -580,7 +580,7 @@ impl<'a, 'b> Context<'a, 'b> { let slicename = self.ecx.ident_of("__args_vec"); { let args = names.into_iter().map(|a| a.unwrap()); - let mut args = locals.into_iter().chain(args); + let args = locals.into_iter().chain(args); let args = self.ecx.expr_vec_slice(self.fmtsp, args.collect()); lets.push(self.ecx.stmt_let(self.fmtsp, false, slicename, args)); } |
