From f30f74785a6aead698915a0a0eb2d68a540b376e Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Thu, 5 Dec 2019 17:12:58 +0000 Subject: [PATCH] Silence deprecation warning --- patches/1b946106b7955d3dcde26719b9b62a5a2c4b78fe.patch | 6 +++--- patches/413ab57c0210ecbe92298c53ec4e1e39f97e4e4c.patch | 6 +++--- patches/4436c9d35498e7ae3da261f6141d6d73b915e1e8.patch | 6 +++--- patches/5b5196ad65db877c2f140dfc7a25f3fc6f2e40c6.patch | 6 +++--- patches/62e86b42b5ed342d30c539e22810c26d312995e2.patch | 6 +++--- patches/9ff52752d855722c55dbc71d9b22bd42eabfc468.patch | 6 +++--- patches/a8c5f90b06c9bf2bfa2c2f4aedd7c395cb92195d.patch | 6 +++--- patches/b03d3dc478ba13f405cf9a877a4894de096a1cc1.patch | 6 +++--- patches/b405aa2d0301c5fc448299501278ae2db4e15e50.patch | 6 +++--- patches/b94e59cc41f8eeb36ee269cae3275d7620189c14.patch | 6 +++--- patches/dad56c39474377c7d47e261b380d0be3aed104cc.patch | 6 +++--- patches/e697ffbbcb41559c8de3ca3b94f3b9467e662a19.patch | 6 +++--- patches/edb5214b29cd7de06dd10f673986d38e568b077c.patch | 6 +++--- 13 files changed, 39 insertions(+), 39 deletions(-) diff --git a/patches/1b946106b7955d3dcde26719b9b62a5a2c4b78fe.patch b/patches/1b946106b7955d3dcde26719b9b62a5a2c4b78fe.patch index 271b2fd..1fe7a2b 100644 --- a/patches/1b946106b7955d3dcde26719b9b62a5a2c4b78fe.patch +++ b/patches/1b946106b7955d3dcde26719b9b62a5a2c4b78fe.patch @@ -1675,9 +1675,8 @@ diff --git a/util.rs b/util.rs index 33cc87e..fd1257d 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut}; @@ -1690,7 +1689,7 @@ index 33cc87e..fd1257d 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit; +@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -1706,6 +1705,7 @@ index 33cc87e..fd1257d 100644 - // than if this code were in an external lib. - unsafe { reader.initializer().initialize(buf.get_mut()); } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf diff --git a/patches/413ab57c0210ecbe92298c53ec4e1e39f97e4e4c.patch b/patches/413ab57c0210ecbe92298c53ec4e1e39f97e4e4c.patch index f719de1..8b7459d 100644 --- a/patches/413ab57c0210ecbe92298c53ec4e1e39f97e4e4c.patch +++ b/patches/413ab57c0210ecbe92298c53ec4e1e39f97e4e4c.patch @@ -1673,9 +1673,8 @@ diff --git a/util.rs b/util.rs index 33cc87e..fd1257d 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut}; @@ -1688,7 +1687,7 @@ index 33cc87e..fd1257d 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit; +@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -1704,6 +1703,7 @@ index 33cc87e..fd1257d 100644 - // than if this code were in an external lib. - unsafe { reader.initializer().initialize(buf.get_mut()); } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf diff --git a/patches/4436c9d35498e7ae3da261f6141d6d73b915e1e8.patch b/patches/4436c9d35498e7ae3da261f6141d6d73b915e1e8.patch index d69e68b..a34a121 100644 --- a/patches/4436c9d35498e7ae3da261f6141d6d73b915e1e8.patch +++ b/patches/4436c9d35498e7ae3da261f6141d6d73b915e1e8.patch @@ -2023,9 +2023,8 @@ diff --git a/util.rs b/util.rs index b09161b..4b481c8 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, BufRead, ErrorKind, Initializer, IoSlice, IoSliceMut, Read, Write}; @@ -2038,7 +2037,7 @@ index b09161b..4b481c8 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,31 +42,26 @@ use crate::mem::MaybeUninit; +@@ -39,31 +42,27 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -2058,6 +2057,7 @@ index b09161b..4b481c8 100644 - reader.initializer().initialize(buf.get_mut()); - } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf diff --git a/patches/5b5196ad65db877c2f140dfc7a25f3fc6f2e40c6.patch b/patches/5b5196ad65db877c2f140dfc7a25f3fc6f2e40c6.patch index c4d8987..4bbcadf 100644 --- a/patches/5b5196ad65db877c2f140dfc7a25f3fc6f2e40c6.patch +++ b/patches/5b5196ad65db877c2f140dfc7a25f3fc6f2e40c6.patch @@ -1673,9 +1673,8 @@ diff --git a/util.rs b/util.rs index 33cc87e..fd1257d 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut}; @@ -1688,7 +1687,7 @@ index 33cc87e..fd1257d 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit; +@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -1704,6 +1703,7 @@ index 33cc87e..fd1257d 100644 - // than if this code were in an external lib. - unsafe { reader.initializer().initialize(buf.get_mut()); } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf diff --git a/patches/62e86b42b5ed342d30c539e22810c26d312995e2.patch b/patches/62e86b42b5ed342d30c539e22810c26d312995e2.patch index dc0619c..d5cb70c 100644 --- a/patches/62e86b42b5ed342d30c539e22810c26d312995e2.patch +++ b/patches/62e86b42b5ed342d30c539e22810c26d312995e2.patch @@ -1673,9 +1673,8 @@ diff --git a/util.rs b/util.rs index 33cc87e..fd1257d 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut}; @@ -1688,7 +1687,7 @@ index 33cc87e..fd1257d 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit; +@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -1704,6 +1703,7 @@ index 33cc87e..fd1257d 100644 - // than if this code were in an external lib. - unsafe { reader.initializer().initialize(buf.get_mut()); } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf diff --git a/patches/9ff52752d855722c55dbc71d9b22bd42eabfc468.patch b/patches/9ff52752d855722c55dbc71d9b22bd42eabfc468.patch index c5b2294..68fe1c3 100644 --- a/patches/9ff52752d855722c55dbc71d9b22bd42eabfc468.patch +++ b/patches/9ff52752d855722c55dbc71d9b22bd42eabfc468.patch @@ -1647,9 +1647,8 @@ diff --git a/util.rs b/util.rs index 33cc87e..fd1257d 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut}; @@ -1662,7 +1661,7 @@ index 33cc87e..fd1257d 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit; +@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -1678,6 +1677,7 @@ index 33cc87e..fd1257d 100644 - // than if this code were in an external lib. - unsafe { reader.initializer().initialize(buf.get_mut()); } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf diff --git a/patches/a8c5f90b06c9bf2bfa2c2f4aedd7c395cb92195d.patch b/patches/a8c5f90b06c9bf2bfa2c2f4aedd7c395cb92195d.patch index 46887fb..2cebecf 100644 --- a/patches/a8c5f90b06c9bf2bfa2c2f4aedd7c395cb92195d.patch +++ b/patches/a8c5f90b06c9bf2bfa2c2f4aedd7c395cb92195d.patch @@ -1675,9 +1675,8 @@ diff --git a/util.rs b/util.rs index 33cc87e..fd1257d 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut}; @@ -1690,7 +1689,7 @@ index 33cc87e..fd1257d 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit; +@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -1706,6 +1705,7 @@ index 33cc87e..fd1257d 100644 - // than if this code were in an external lib. - unsafe { reader.initializer().initialize(buf.get_mut()); } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf diff --git a/patches/b03d3dc478ba13f405cf9a877a4894de096a1cc1.patch b/patches/b03d3dc478ba13f405cf9a877a4894de096a1cc1.patch index 46887fb..2cebecf 100644 --- a/patches/b03d3dc478ba13f405cf9a877a4894de096a1cc1.patch +++ b/patches/b03d3dc478ba13f405cf9a877a4894de096a1cc1.patch @@ -1675,9 +1675,8 @@ diff --git a/util.rs b/util.rs index 33cc87e..fd1257d 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut}; @@ -1690,7 +1689,7 @@ index 33cc87e..fd1257d 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit; +@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -1706,6 +1705,7 @@ index 33cc87e..fd1257d 100644 - // than if this code were in an external lib. - unsafe { reader.initializer().initialize(buf.get_mut()); } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf diff --git a/patches/b405aa2d0301c5fc448299501278ae2db4e15e50.patch b/patches/b405aa2d0301c5fc448299501278ae2db4e15e50.patch index 0282faf..3f45932 100644 --- a/patches/b405aa2d0301c5fc448299501278ae2db4e15e50.patch +++ b/patches/b405aa2d0301c5fc448299501278ae2db4e15e50.patch @@ -1647,9 +1647,8 @@ diff --git a/util.rs b/util.rs index 33cc87e..fd1257d 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut}; @@ -1662,7 +1661,7 @@ index 33cc87e..fd1257d 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit; +@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -1678,6 +1677,7 @@ index 33cc87e..fd1257d 100644 - // than if this code were in an external lib. - unsafe { reader.initializer().initialize(buf.get_mut()); } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf diff --git a/patches/b94e59cc41f8eeb36ee269cae3275d7620189c14.patch b/patches/b94e59cc41f8eeb36ee269cae3275d7620189c14.patch index 76de0fc..db163c4 100644 --- a/patches/b94e59cc41f8eeb36ee269cae3275d7620189c14.patch +++ b/patches/b94e59cc41f8eeb36ee269cae3275d7620189c14.patch @@ -1647,9 +1647,8 @@ diff --git a/util.rs b/util.rs index 33cc87e..fd1257d 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut}; @@ -1662,7 +1661,7 @@ index 33cc87e..fd1257d 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit; +@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -1678,6 +1677,7 @@ index 33cc87e..fd1257d 100644 - // than if this code were in an external lib. - unsafe { reader.initializer().initialize(buf.get_mut()); } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf diff --git a/patches/dad56c39474377c7d47e261b380d0be3aed104cc.patch b/patches/dad56c39474377c7d47e261b380d0be3aed104cc.patch index fa33d63..1c5f3aa 100644 --- a/patches/dad56c39474377c7d47e261b380d0be3aed104cc.patch +++ b/patches/dad56c39474377c7d47e261b380d0be3aed104cc.patch @@ -1675,9 +1675,8 @@ diff --git a/util.rs b/util.rs index 33cc87e..fd1257d 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut}; @@ -1690,7 +1689,7 @@ index 33cc87e..fd1257d 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit; +@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -1706,6 +1705,7 @@ index 33cc87e..fd1257d 100644 - // than if this code were in an external lib. - unsafe { reader.initializer().initialize(buf.get_mut()); } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf diff --git a/patches/e697ffbbcb41559c8de3ca3b94f3b9467e662a19.patch b/patches/e697ffbbcb41559c8de3ca3b94f3b9467e662a19.patch index dc0619c..d5cb70c 100644 --- a/patches/e697ffbbcb41559c8de3ca3b94f3b9467e662a19.patch +++ b/patches/e697ffbbcb41559c8de3ca3b94f3b9467e662a19.patch @@ -1673,9 +1673,8 @@ diff --git a/util.rs b/util.rs index 33cc87e..fd1257d 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut}; @@ -1688,7 +1687,7 @@ index 33cc87e..fd1257d 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit; +@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -1704,6 +1703,7 @@ index 33cc87e..fd1257d 100644 - // than if this code were in an external lib. - unsafe { reader.initializer().initialize(buf.get_mut()); } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf diff --git a/patches/edb5214b29cd7de06dd10f673986d38e568b077c.patch b/patches/edb5214b29cd7de06dd10f673986d38e568b077c.patch index 3c1f252..eab8ec6 100644 --- a/patches/edb5214b29cd7de06dd10f673986d38e568b077c.patch +++ b/patches/edb5214b29cd7de06dd10f673986d38e568b077c.patch @@ -1675,9 +1675,8 @@ diff --git a/util.rs b/util.rs index 33cc87e..fd1257d 100644 --- a/util.rs +++ b/util.rs -@@ -1,8 +1,11 @@ +@@ -1,8 +1,10 @@ #![allow(missing_copy_implementations)] -+#![allow(deprecated)] -use crate::fmt; -use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut}; @@ -1690,7 +1689,7 @@ index 33cc87e..fd1257d 100644 /// Copies the entire contents of a reader into a writer. /// -@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit; +@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit; /// Ok(()) /// } /// ``` @@ -1706,6 +1705,7 @@ index 33cc87e..fd1257d 100644 - // than if this code were in an external lib. - unsafe { reader.initializer().initialize(buf.get_mut()); } + let mut buf = unsafe { ++ #[allow(deprecated)] + let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized(); + reader.initializer().initialize(&mut buf); + buf