about summary refs log tree commit diff
path: root/src/libsyntax/tokenstream.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-11-06 07:03:08 +0100
committerGitHub <noreply@github.com>2019-11-06 07:03:08 +0100
commit167b8fedd615becb4e614ae0635a0e488cce70c4 (patch)
tree21d9dbb2693a5ea4f8fc08b7241021dd1e14b92c /src/libsyntax/tokenstream.rs
parent98cbe179032726052d672334bb1a82cd4f604072 (diff)
parent90b8d34c9f0d17c948801f676a96800e8b038508 (diff)
downloadrust-167b8fedd615becb4e614ae0635a0e488cce70c4.tar.gz
rust-167b8fedd615becb4e614ae0635a0e488cce70c4.zip
Rollup merge of #66086 - RalfJung:smallvec, r=nagisa
bump smallvec to 1.0

This includes https://github.com/servo/rust-smallvec/pull/162, fixing an unsoundness in smallvec.

See https://github.com/servo/rust-smallvec/pull/175 for the 1.0 release announcement.

Cc @mbrubeck @emilio
Diffstat (limited to 'src/libsyntax/tokenstream.rs')
-rw-r--r--src/libsyntax/tokenstream.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/tokenstream.rs b/src/libsyntax/tokenstream.rs
index 7e0582797c7..a51d208704a 100644
--- a/src/libsyntax/tokenstream.rs
+++ b/src/libsyntax/tokenstream.rs
@@ -243,7 +243,7 @@ impl TokenStream {
 
                 // Get the first stream. If it's `None`, create an empty
                 // stream.
-                let mut iter = streams.drain();
+                let mut iter = streams.drain(..);
                 let mut first_stream_lrc = iter.next().unwrap().0;
 
                 // Append the elements to the first stream, after reserving