Skip to content

Commit

Permalink
Make moves explicit in libsyntax
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Oct 13, 2012
1 parent 335e5ca commit c5fa613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libsyntax/ext/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ fn mk_ctxt(parse_sess: parse::parse_sess,
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 {
Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/util/interner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit c5fa613

Please sign in to comment.