about summary refs log tree commit diff
path: root/src/libsyntax/attr
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-01-09 16:53:14 +1100
committerNicholas Nethercote <nnethercote@mozilla.com>2019-01-14 09:10:26 +1100
commitce0d9949b817267e88e8d366a8cee929abf1e4ba (patch)
tree9b91b26500fc7493c707e7531de86069d87d5f1f /src/libsyntax/attr
parent28966e1a7ac509cebac4595e96f8d053b30fb946 (diff)
downloadrust-ce0d9949b817267e88e8d366a8cee929abf1e4ba.tar.gz
rust-ce0d9949b817267e88e8d366a8cee929abf1e4ba.zip
Remove `ThinTokenStream`.
`TokenStream` is now almost identical to `ThinTokenStream`. This commit
removes the latter, replacing it with the former.
Diffstat (limited to 'src/libsyntax/attr')
-rw-r--r--src/libsyntax/attr/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/attr/mod.rs b/src/libsyntax/attr/mod.rs
index d03563f8891..0f8ca5e7b99 100644
--- a/src/libsyntax/attr/mod.rs
+++ b/src/libsyntax/attr/mod.rs
@@ -565,7 +565,7 @@ impl MetaItemKind {
             }
             Some(TokenTree::Delimited(_, delim, ref tts)) if delim == token::Paren => {
                 tokens.next();
-                tts.stream()
+                tts.clone()
             }
             _ => return Some(MetaItemKind::Word),
         };