Fallout from stabilization

This commit is contained in:
Aaron Turon 2014-11-06 09:32:37 -08:00
parent a86f72d9a2
commit b299c2b57d
58 changed files with 105 additions and 103 deletions

View file

@ -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>
}
}

View file

@ -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));
}