X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibsyntax%2Ftokenstream.rs;h=a220ba0a5ea2ce5434e2d750da6834188c055089;hb=90b8d34c9f0d17c948801f676a96800e8b038508;hp=0559f224f1f4bf30306767ed59a1ce161e9e3016;hpb=8b9661bbb0cd6d77511f2394affc146ff57c465f;p=rust.git 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 @@ pub fn len(&self) -> usize { // 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