about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-11-04 15:59:09 +0100
committerRalf Jung <post@ralfj.de>2019-11-04 15:59:09 +0100
commit90b8d34c9f0d17c948801f676a96800e8b038508 (patch)
tree04d11ad36a3fea26f93db0a92aacf509075c46b4 /src/libsyntax
parentab6e47851b51a413db5d721f25d714653e7549fd (diff)
downloadrust-90b8d34c9f0d17c948801f676a96800e8b038508.tar.gz
rust-90b8d34c9f0d17c948801f676a96800e8b038508.zip
bump smallvec to 1.0
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/Cargo.toml2
-rw-r--r--src/libsyntax/tokenstream.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/Cargo.toml b/src/libsyntax/Cargo.toml
index 3ce47e6a7b8..b1839cc05cd 100644
--- a/src/libsyntax/Cargo.toml
+++ b/src/libsyntax/Cargo.toml
@@ -21,4 +21,4 @@ rustc_data_structures = { path = "../librustc_data_structures" }
 rustc_index = { path = "../librustc_index" }
 rustc_lexer = { path = "../librustc_lexer" }
 rustc_target = { path = "../librustc_target" }
-smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
+smallvec = { version = "1.0", features = ["union", "may_dangle"] }
diff --git a/src/libsyntax/tokenstream.rs b/src/libsyntax/tokenstream.rs
index 0559f224f1f..a220ba0a5ea 100644
--- a/src/libsyntax/tokenstream.rs
+++ b/src/libsyntax/tokenstream.rs
@@ -253,7 +253,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