Skip to content

Commit c5fa613

Browse files
committed
Make moves explicit in libsyntax
1 parent 335e5ca commit c5fa613

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libsyntax/ext/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ fn mk_ctxt(parse_sess: parse::parse_sess,
231231
mut mod_path: ~[],
232232
mut trace_mac: false
233233
};
234-
move (imp as ext_ctxt)
234+
move ((move imp) as ext_ctxt)
235235
}
236236

237237
fn expr_to_str(cx: ext_ctxt, expr: @ast::expr, error: ~str) -> ~str {

src/libsyntax/util/interner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn mk<T:Eq IterBytes Hash Const Copy>() -> interner<T> {
1616
let m = map::HashMap::<T, uint>();
1717
let hi: hash_interner<T> =
1818
{map: m, vect: DVec()};
19-
move (hi as interner::<T>)
19+
move ((move hi) as interner::<T>)
2020
}
2121

2222
fn mk_prefill<T:Eq IterBytes Hash Const Copy>(init: ~[T]) -> interner<T> {

0 commit comments

Comments
 (0)