]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_expand/src/mbe/quoted.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / compiler / rustc_expand / src / mbe / quoted.rs
index d52de24c393b7907f8ef8e42328d99810457557b..707cb73f097f87062f999dc9eb8cebbd476af86b 100644 (file)
@@ -48,7 +48,7 @@ pub(super) fn parse(
 
     // For each token tree in `input`, parse the token into a `self::TokenTree`, consuming
     // additional trees if need be.
-    let mut trees = input.trees();
+    let mut trees = input.into_trees();
     while let Some(tree) = trees.next() {
         // Given the parsed tree, if there is a metavar and we are expecting matchers, actually
         // parse out the matcher (i.e., in `$id:ident` this would parse the `:` and `ident`).