Make moves explicit in libsyntax
This commit is contained in:
parent
335e5ca33b
commit
c5fa613498
2 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue