diff options
| author | Eric Holk <eric.holk@gmail.com> | 2012-05-18 10:40:54 -0700 |
|---|---|---|
| committer | Eric Holk <eric.holk@gmail.com> | 2012-05-18 16:55:42 -0700 |
| commit | 0eed37da290aa040bc57191da97bd3d322c1203d (patch) | |
| tree | 56ffcf2838b97739c25e13923b99e823c99a74ac /src/librustsyntax | |
| parent | 0f20cae37fd703f344d226170ebe440ab76fe565 (diff) | |
| download | rust-0eed37da290aa040bc57191da97bd3d322c1203d.tar.gz rust-0eed37da290aa040bc57191da97bd3d322c1203d.zip | |
Using const vector slices for more vec functions.
Diffstat (limited to 'src/librustsyntax')
| -rw-r--r-- | src/librustsyntax/ext/qquote.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustsyntax/ext/qquote.rs b/src/librustsyntax/ext/qquote.rs index 9e2579cff6a..bbd4773470e 100644 --- a/src/librustsyntax/ext/qquote.rs +++ b/src/librustsyntax/ext/qquote.rs @@ -257,10 +257,11 @@ fn finish<T: qq_helper> ); let mut rcall = pcall; if (g_len > 0u) { + let gather = copy qcx.gather; rcall = mk_call(cx,sp, ["syntax", "ext", "qquote", "replace"], [pcall, - mk_vec_e(cx,sp, vec::map(copy qcx.gather) {|g| + mk_vec_e(cx,sp, vec::map(gather) {|g| mk_call(cx,sp, ["syntax", "ext", "qquote", g.constr], [g.e])}), |
