diff options
| author | Luqman Aden <laden@mozilla.com> | 2013-02-15 01:15:53 -0800 |
|---|---|---|
| committer | Luqman Aden <laden@mozilla.com> | 2013-02-15 02:49:55 -0800 |
| commit | e244f103c9622ef0d13b138ec6f8425840201def (patch) | |
| tree | 90dfaa8da5f602e30f05597a12be1d6f81e6f512 /src/libsyntax/codemap.rs | |
| parent | 99b3c07b4e788d7120c2754f69613f760a6efd0a (diff) | |
| download | rust-e244f103c9622ef0d13b138ec6f8425840201def.tar.gz rust-e244f103c9622ef0d13b138ec6f8425840201def.zip | |
libsyntax: Get rid of uses of `move` and don't parse it.
Diffstat (limited to 'src/libsyntax/codemap.rs')
| -rw-r--r-- | src/libsyntax/codemap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index 10a4e12bef4..3c61e834af6 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -152,7 +152,7 @@ pub impl<D: Decoder> span: Decodable<D> { } pub pure fn spanned<T>(+lo: BytePos, +hi: BytePos, +t: T) -> spanned<T> { - respan(mk_sp(lo, hi), move t) + respan(mk_sp(lo, hi), t) } pub pure fn respan<T>(sp: span, +t: T) -> spanned<T> { @@ -160,7 +160,7 @@ pub pure fn respan<T>(sp: span, +t: T) -> spanned<T> { } pub pure fn dummy_spanned<T>(+t: T) -> spanned<T> { - respan(dummy_sp(), move t) + respan(dummy_sp(), t) } /* assuming that we're not in macro expansion */ |
