diff --git a/patches/0f02309e4b0ea05ee905205278fb6d131341c41f.patch b/patches/0f02309e4b0ea05ee905205278fb6d131341c41f.patch index 5270830..78e891a 100644 --- a/patches/0f02309e4b0ea05ee905205278fb6d131341c41f.patch +++ b/patches/0f02309e4b0ea05ee905205278fb6d131341c41f.patch @@ -367,11 +367,12 @@ index a1002fd..3a00ffe 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index a1002fd..3a00ffe 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1030,7 +1033,7 @@ index 28492b3..924d626 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/117cbb879e6ef498ea04e08bd80688bf2fc4a183.patch b/patches/117cbb879e6ef498ea04e08bd80688bf2fc4a183.patch index 8bfc724..48a8f65 100644 --- a/patches/117cbb879e6ef498ea04e08bd80688bf2fc4a183.patch +++ b/patches/117cbb879e6ef498ea04e08bd80688bf2fc4a183.patch @@ -365,11 +365,12 @@ index 1b836b7..c77f287 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -218,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -218,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -381,19 +382,21 @@ index 1b836b7..c77f287 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -239,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +256,6 @@ impl Write for Cursor> { +@@ -267,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -1029,7 +1032,7 @@ index 1053792..5acfe6a 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/161c541afdd18423940e97c7a02b517b1f6d61be.patch b/patches/161c541afdd18423940e97c7a02b517b1f6d61be.patch index fb2ae22..c118e43 100644 --- a/patches/161c541afdd18423940e97c7a02b517b1f6d61be.patch +++ b/patches/161c541afdd18423940e97c7a02b517b1f6d61be.patch @@ -367,11 +367,12 @@ index a1002fd..3a00ffe 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index a1002fd..3a00ffe 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1030,7 +1033,7 @@ index 0f988c7..d6cd245 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/1f9036872d7ea8bee91f8588e3c4a613c58c76cb.patch b/patches/1f9036872d7ea8bee91f8588e3c4a613c58c76cb.patch index d645761..baf64e3 100644 --- a/patches/1f9036872d7ea8bee91f8588e3c4a613c58c76cb.patch +++ b/patches/1f9036872d7ea8bee91f8588e3c4a613c58c76cb.patch @@ -366,11 +366,12 @@ index ae0085f..5392880 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +211,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +211,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -382,19 +383,21 @@ index ae0085f..5392880 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -240,7 +230,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -240,7 +230,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos: usize = self.position().try_into().map_err(|_| { -@@ -270,7 +259,6 @@ impl Write for Cursor> { +@@ -270,7 +259,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -938,7 +941,7 @@ index 7310564..05d91fc 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/26f9949bf678abc1fae595e3f6eb59a5bf8a7564.patch b/patches/26f9949bf678abc1fae595e3f6eb59a5bf8a7564.patch index 6b57510..12b68e8 100644 --- a/patches/26f9949bf678abc1fae595e3f6eb59a5bf8a7564.patch +++ b/patches/26f9949bf678abc1fae595e3f6eb59a5bf8a7564.patch @@ -365,11 +365,12 @@ index 1b836b7..c77f287 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -218,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -218,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -381,19 +382,21 @@ index 1b836b7..c77f287 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -239,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +256,6 @@ impl Write for Cursor> { +@@ -267,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -1029,7 +1032,7 @@ index 0de02cb..0f202c2 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/552eda70d33cead1398adfecce1a75e7a61e3daf.patch b/patches/552eda70d33cead1398adfecce1a75e7a61e3daf.patch index ade6454..fa8e85a 100644 --- a/patches/552eda70d33cead1398adfecce1a75e7a61e3daf.patch +++ b/patches/552eda70d33cead1398adfecce1a75e7a61e3daf.patch @@ -367,11 +367,12 @@ index a1002fd..3a00ffe 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index a1002fd..3a00ffe 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1030,7 +1033,7 @@ index 6dd7273..ba07b2c 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/62b19c627ebde2bbfa6021de146c502124da7975.patch b/patches/62b19c627ebde2bbfa6021de146c502124da7975.patch index 67d7802..a9e43cc 100644 --- a/patches/62b19c627ebde2bbfa6021de146c502124da7975.patch +++ b/patches/62b19c627ebde2bbfa6021de146c502124da7975.patch @@ -367,11 +367,12 @@ index a1002fd..3a00ffe 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index a1002fd..3a00ffe 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1030,7 +1033,7 @@ index a058337..d190cba 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/78ab18199d69bcc801668bfbeea8190b2c73a939.patch b/patches/78ab18199d69bcc801668bfbeea8190b2c73a939.patch index 37f232d..08ae999 100644 --- a/patches/78ab18199d69bcc801668bfbeea8190b2c73a939.patch +++ b/patches/78ab18199d69bcc801668bfbeea8190b2c73a939.patch @@ -367,11 +367,12 @@ index a1002fd..3a00ffe 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index a1002fd..3a00ffe 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1030,7 +1033,7 @@ index d914d14..d17f3cf 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/80d733385aa2ff150a5d6f83ecfe55afc7e19e68.patch b/patches/80d733385aa2ff150a5d6f83ecfe55afc7e19e68.patch index 10d3ba6..e00cb7e 100644 --- a/patches/80d733385aa2ff150a5d6f83ecfe55afc7e19e68.patch +++ b/patches/80d733385aa2ff150a5d6f83ecfe55afc7e19e68.patch @@ -367,11 +367,12 @@ index 2d78055..1db50ee 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index 2d78055..1db50ee 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -240,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -240,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -268,7 +256,6 @@ impl Write for Cursor> { +@@ -268,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -1030,7 +1033,7 @@ index a058337..d190cba 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/8128817119e479b0610685e3fc7a6ff21cde5abc.patch b/patches/8128817119e479b0610685e3fc7a6ff21cde5abc.patch index 955463f..9bb17f2 100644 --- a/patches/8128817119e479b0610685e3fc7a6ff21cde5abc.patch +++ b/patches/8128817119e479b0610685e3fc7a6ff21cde5abc.patch @@ -367,11 +367,12 @@ index a1002fd..3a00ffe 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index a1002fd..3a00ffe 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1030,7 +1033,7 @@ index bcce8ee..4a492d7 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/87aee45988e81cb1a7bc9881aa7172d4f9caefd4.patch b/patches/87aee45988e81cb1a7bc9881aa7172d4f9caefd4.patch index 5270830..78e891a 100644 --- a/patches/87aee45988e81cb1a7bc9881aa7172d4f9caefd4.patch +++ b/patches/87aee45988e81cb1a7bc9881aa7172d4f9caefd4.patch @@ -367,11 +367,12 @@ index a1002fd..3a00ffe 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index a1002fd..3a00ffe 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1030,7 +1033,7 @@ index 28492b3..924d626 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/8d06332a27b020f5252238946fa9dccc3843d52a.patch b/patches/8d06332a27b020f5252238946fa9dccc3843d52a.patch index 398c294..6f8ea03 100644 --- a/patches/8d06332a27b020f5252238946fa9dccc3843d52a.patch +++ b/patches/8d06332a27b020f5252238946fa9dccc3843d52a.patch @@ -366,11 +366,12 @@ index ae0085f..5392880 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +211,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +211,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -382,19 +383,21 @@ index ae0085f..5392880 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -240,7 +230,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -240,7 +230,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos: usize = self.position().try_into().map_err(|_| { -@@ -270,7 +259,6 @@ impl Write for Cursor> { +@@ -270,7 +259,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -938,7 +941,7 @@ index 7310564..05d91fc 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/8e414e0e3f27d1917d11ee80de827698beb53891.patch b/patches/8e414e0e3f27d1917d11ee80de827698beb53891.patch index 9ab22e6..1b515ac 100644 --- a/patches/8e414e0e3f27d1917d11ee80de827698beb53891.patch +++ b/patches/8e414e0e3f27d1917d11ee80de827698beb53891.patch @@ -367,11 +367,12 @@ index a1002fd..3a00ffe 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index a1002fd..3a00ffe 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1030,7 +1033,7 @@ index a058337..d190cba 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/92400cf8dcf411ce7e70ab2960639977d46d5b01.patch b/patches/92400cf8dcf411ce7e70ab2960639977d46d5b01.patch index 5bd493e..4ce52d7 100644 --- a/patches/92400cf8dcf411ce7e70ab2960639977d46d5b01.patch +++ b/patches/92400cf8dcf411ce7e70ab2960639977d46d5b01.patch @@ -367,11 +367,12 @@ index 2d78055..1db50ee 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index 2d78055..1db50ee 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -240,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -240,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -268,7 +256,6 @@ impl Write for Cursor> { +@@ -268,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -1036,7 +1039,7 @@ index d5b255e..c14c50e 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/98e3120ad218b8d9c50e25a525dcff689c515776.patch b/patches/98e3120ad218b8d9c50e25a525dcff689c515776.patch index 8ea7dad..c9a9935 100644 --- a/patches/98e3120ad218b8d9c50e25a525dcff689c515776.patch +++ b/patches/98e3120ad218b8d9c50e25a525dcff689c515776.patch @@ -367,11 +367,12 @@ index 2d78055..1db50ee 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index 2d78055..1db50ee 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -240,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -240,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -268,7 +256,6 @@ impl Write for Cursor> { +@@ -268,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -1036,7 +1039,7 @@ index a058337..d190cba 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/9a2c8783d91624261317316f996d8d2d09b7b6a4.patch b/patches/9a2c8783d91624261317316f996d8d2d09b7b6a4.patch index a3408dd..2505438 100644 --- a/patches/9a2c8783d91624261317316f996d8d2d09b7b6a4.patch +++ b/patches/9a2c8783d91624261317316f996d8d2d09b7b6a4.patch @@ -365,11 +365,12 @@ index 1b836b7..c77f287 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -218,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -218,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -381,19 +382,21 @@ index 1b836b7..c77f287 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -239,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +256,6 @@ impl Write for Cursor> { +@@ -267,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -1028,7 +1031,7 @@ index 1053792..5acfe6a 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/9f935c8dd891ec6eb0809b8438656d1b39c2e2f5.patch b/patches/9f935c8dd891ec6eb0809b8438656d1b39c2e2f5.patch index cda86a3..b136007 100644 --- a/patches/9f935c8dd891ec6eb0809b8438656d1b39c2e2f5.patch +++ b/patches/9f935c8dd891ec6eb0809b8438656d1b39c2e2f5.patch @@ -367,11 +367,12 @@ index a1002fd..3a00ffe 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index a1002fd..3a00ffe 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1030,7 +1033,7 @@ index a058337..d190cba 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/9fe3c065b0e94b1e2ce7f14ab512475e79426ce4.patch b/patches/9fe3c065b0e94b1e2ce7f14ab512475e79426ce4.patch index 80d0b31..29ba231 100644 --- a/patches/9fe3c065b0e94b1e2ce7f14ab512475e79426ce4.patch +++ b/patches/9fe3c065b0e94b1e2ce7f14ab512475e79426ce4.patch @@ -367,11 +367,12 @@ index a1002fd..3a00ffe 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index a1002fd..3a00ffe 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1030,7 +1033,7 @@ index ca15aa2..900ee2f 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/c1fb50f5d377a41dd5833e4621e9a14879647503.patch b/patches/c1fb50f5d377a41dd5833e4621e9a14879647503.patch index f7fddd7..f9aa02c 100644 --- a/patches/c1fb50f5d377a41dd5833e4621e9a14879647503.patch +++ b/patches/c1fb50f5d377a41dd5833e4621e9a14879647503.patch @@ -367,11 +367,12 @@ index 420fede..670e362 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = try!(Read::read(&mut try!(self.fill_buf()), buf)); -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index 420fede..670e362 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1038,7 +1041,7 @@ index 61334f3..9d9263f 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/cae91d7c8c21aa860bda29c62207a6726837952b.patch b/patches/cae91d7c8c21aa860bda29c62207a6726837952b.patch index 67d7802..a9e43cc 100644 --- a/patches/cae91d7c8c21aa860bda29c62207a6726837952b.patch +++ b/patches/cae91d7c8c21aa860bda29c62207a6726837952b.patch @@ -367,11 +367,12 @@ index a1002fd..3a00ffe 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index a1002fd..3a00ffe 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1030,7 +1033,7 @@ index a058337..d190cba 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/ce943eb369c9bdd0aef4917675e515f39f3b4a1e.patch b/patches/ce943eb369c9bdd0aef4917675e515f39f3b4a1e.patch index 8796a83..b8505bb 100644 --- a/patches/ce943eb369c9bdd0aef4917675e515f39f3b4a1e.patch +++ b/patches/ce943eb369c9bdd0aef4917675e515f39f3b4a1e.patch @@ -367,11 +367,12 @@ index 420fede..670e362 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = try!(Read::read(&mut try!(self.fill_buf()), buf)); -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index 420fede..670e362 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1030,7 +1033,7 @@ index 60a720e..85ce207 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/d311079a6f70577d02f35bb80d27eef7e2b18a4a.patch b/patches/d311079a6f70577d02f35bb80d27eef7e2b18a4a.patch index 6a21c98..4106390 100644 --- a/patches/d311079a6f70577d02f35bb80d27eef7e2b18a4a.patch +++ b/patches/d311079a6f70577d02f35bb80d27eef7e2b18a4a.patch @@ -365,11 +365,12 @@ index 1b836b7..c77f287 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -218,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -218,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -381,19 +382,21 @@ index 1b836b7..c77f287 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -239,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +256,6 @@ impl Write for Cursor> { +@@ -267,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -937,7 +940,7 @@ index 3becc0a..05d91fc 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/d40c593f42fafbac1ff3d827f6df96338b5b7d8b.patch b/patches/d40c593f42fafbac1ff3d827f6df96338b5b7d8b.patch index 45d1d65..ed3b8a3 100644 --- a/patches/d40c593f42fafbac1ff3d827f6df96338b5b7d8b.patch +++ b/patches/d40c593f42fafbac1ff3d827f6df96338b5b7d8b.patch @@ -367,11 +367,12 @@ index 2d78055..1db50ee 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index 2d78055..1db50ee 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -240,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -240,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -268,7 +256,6 @@ impl Write for Cursor> { +@@ -268,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -1036,7 +1039,7 @@ index a058337..d190cba 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/d6aa4e828c3dc3b7c417197990741b024f8c4ca3.patch b/patches/d6aa4e828c3dc3b7c417197990741b024f8c4ca3.patch index f6cd4fb..82de88d 100644 --- a/patches/d6aa4e828c3dc3b7c417197990741b024f8c4ca3.patch +++ b/patches/d6aa4e828c3dc3b7c417197990741b024f8c4ca3.patch @@ -365,11 +365,12 @@ index 1b836b7..c77f287 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -218,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -218,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -381,19 +382,21 @@ index 1b836b7..c77f287 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -239,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +256,6 @@ impl Write for Cursor> { +@@ -267,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -1029,7 +1032,7 @@ index 06609cf..a1bbe50 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/dd56a6ad0845b76509c4f8967e8ca476471ab7e0.patch b/patches/dd56a6ad0845b76509c4f8967e8ca476471ab7e0.patch index a0a9167..e533fae 100644 --- a/patches/dd56a6ad0845b76509c4f8967e8ca476471ab7e0.patch +++ b/patches/dd56a6ad0845b76509c4f8967e8ca476471ab7e0.patch @@ -367,11 +367,12 @@ index 2d78055..1db50ee 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index 2d78055..1db50ee 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -240,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -240,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -268,7 +256,6 @@ impl Write for Cursor> { +@@ -268,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -1030,7 +1033,7 @@ index a058337..d190cba 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/e107c8b84969fbe52cae7c9fd61858fddc6e016b.patch b/patches/e107c8b84969fbe52cae7c9fd61858fddc6e016b.patch index 2968c07..f23dd27 100644 --- a/patches/e107c8b84969fbe52cae7c9fd61858fddc6e016b.patch +++ b/patches/e107c8b84969fbe52cae7c9fd61858fddc6e016b.patch @@ -365,11 +365,12 @@ index 1b836b7..c77f287 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -218,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -218,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -381,19 +382,21 @@ index 1b836b7..c77f287 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -239,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +256,6 @@ impl Write for Cursor> { +@@ -267,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -1029,7 +1032,7 @@ index 06609cf..a1bbe50 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/e6cc4c5d13f8819c72568f9675e84c1d17368c67.patch b/patches/e6cc4c5d13f8819c72568f9675e84c1d17368c67.patch index 1770c6c..c0476a6 100644 --- a/patches/e6cc4c5d13f8819c72568f9675e84c1d17368c67.patch +++ b/patches/e6cc4c5d13f8819c72568f9675e84c1d17368c67.patch @@ -367,11 +367,12 @@ index 2d78055..1db50ee 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index 2d78055..1db50ee 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -240,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -240,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -268,7 +256,6 @@ impl Write for Cursor> { +@@ -268,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -1044,7 +1047,7 @@ index 307d014..3f9472c 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/f1e191c0b959111aef19f3aa06b7f1743419470c.patch b/patches/f1e191c0b959111aef19f3aa06b7f1743419470c.patch index 3c5a660..6d059fd 100644 --- a/patches/f1e191c0b959111aef19f3aa06b7f1743419470c.patch +++ b/patches/f1e191c0b959111aef19f3aa06b7f1743419470c.patch @@ -367,11 +367,12 @@ index 420fede..670e362 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = try!(Read::read(&mut try!(self.fill_buf()), buf)); -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,22 @@ index 420fede..670e362 100644 impl<'a> Write for Cursor<&'a mut [u8]> { fn write(&mut self, data: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); -@@ -239,7 +228,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -239,7 +228,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] + #[cfg(feature="collections")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -267,7 +255,6 @@ impl Write for Cursor> { +@@ -267,7 +255,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { let pos = cmp::min(self.pos, self.inner.len() as u64); @@ -1038,7 +1042,7 @@ index 61334f3..9d9263f 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy; diff --git a/patches/fda473f00fa07b9a8246b104396f9922e54bff16.patch b/patches/fda473f00fa07b9a8246b104396f9922e54bff16.patch index 6d5afb3..b70cdb4 100644 --- a/patches/fda473f00fa07b9a8246b104396f9922e54bff16.patch +++ b/patches/fda473f00fa07b9a8246b104396f9922e54bff16.patch @@ -367,11 +367,12 @@ index 2d78055..1db50ee 100644 impl Read for Cursor where T: AsRef<[u8]> { fn read(&mut self, buf: &mut [u8]) -> io::Result { let n = Read::read(&mut self.fill_buf()?, buf)?; -@@ -219,7 +210,6 @@ impl Read for Cursor where T: AsRef<[u8]> { +@@ -219,7 +210,7 @@ impl Read for Cursor where T: AsRef<[u8]> { } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature = "collections")] impl BufRead for Cursor where T: AsRef<[u8]> { fn fill_buf(&mut self) -> io::Result<&[u8]> { let amt = cmp::min(self.pos, self.inner.as_ref().len() as u64); @@ -383,19 +384,21 @@ index 2d78055..1db50ee 100644 impl<'a> Write for Cursor<&'a mut [u8]> { #[inline] fn write(&mut self, data: &[u8]) -> io::Result { -@@ -240,7 +229,6 @@ impl<'a> Write for Cursor<&'a mut [u8]> { +@@ -240,7 +229,7 @@ impl<'a> Write for Cursor<&'a mut [u8]> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "rust1", since = "1.0.0")] ++#[cfg(feature="collections")] impl Write for Cursor> { fn write(&mut self, buf: &[u8]) -> io::Result { // Make sure the internal buffer is as least as big as where we -@@ -268,7 +256,6 @@ impl Write for Cursor> { +@@ -268,7 +256,7 @@ impl Write for Cursor> { fn flush(&mut self) -> io::Result<()> { Ok(()) } } -#[stable(feature = "cursor_box_slice", since = "1.5.0")] ++#[cfg(feature="alloc")] impl Write for Cursor> { #[inline] fn write(&mut self, buf: &[u8]) -> io::Result { @@ -1044,7 +1047,7 @@ index 88fd418..94508d2 100644 -mod buffered; -mod cursor; +#[cfg(feature="collections")] mod buffered; -+#[cfg(feature="collections")] mod cursor; ++mod cursor; mod error; mod impls; -mod lazy;