]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/ext/quote.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / libsyntax / ext / quote.rs
index 6f13a2e6a51fc8a57c9fd70b6732bd2facbbb59a..aa2a23dd2768aff621919e3cb8f973ed67a93156 100644 (file)
@@ -54,7 +54,7 @@ fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> {
 
     impl<T: ToTokens> ToTokens for Vec<T> {
         fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree> {
-            let a = self.iter().flat_map(|t| t.to_tokens(cx).move_iter());
+            let a = self.iter().flat_map(|t| t.to_tokens(cx).into_iter());
             FromIterator::from_iter(a)
         }
     }