Make moves explicit in libsyntax

This commit is contained in:
Tim Chevalier 2012-10-12 17:55:28 -07:00
parent 335e5ca33b
commit c5fa613498
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ fn ident_of(st: ~str) -> ast::ident {
mut mod_path: ~[],
mut trace_mac: false
};
move (imp as ext_ctxt)
move ((move imp) as ext_ctxt)
}
fn expr_to_str(cx: ext_ctxt, expr: @ast::expr, error: ~str) -> ~str {

View File

@ -16,7 +16,7 @@ fn mk<T:Eq IterBytes Hash Const Copy>() -> interner<T> {
let m = map::HashMap::<T, uint>();
let hi: hash_interner<T> =
{map: m, vect: DVec()};
move (hi as interner::<T>)
move ((move hi) as interner::<T>)
}
fn mk_prefill<T:Eq IterBytes Hash Const Copy>(init: ~[T]) -> interner<T> {