@@ -132,7 +132,6 @@ pub const fn sink() -> Sink {
132132/// [`chain`]: ../../std/io/trait.Read.html#method.chain
133133#[ stable( feature = "rust1" , since = "1.0.0" ) ]
134134#[ derive( Debug ) ]
135- #[ non_exhaustive]
136135pub struct Chain < T , U > {
137136 #[ doc( hidden) ]
138137 #[ unstable( feature = "core_io_internals" , reason = "exposed only for libstd" , issue = "none" ) ]
@@ -224,14 +223,6 @@ impl<T, U> Chain<T, U> {
224223 }
225224}
226225
227- #[ doc( hidden) ]
228- #[ unstable( feature = "core_io_internals" , reason = "exposed only for libstd" , issue = "none" ) ]
229- #[ must_use]
230- #[ inline]
231- pub const fn chain < T , U > ( first : T , second : U ) -> Chain < T , U > {
232- Chain { first, second, done_first : false }
233- }
234-
235226/// Reader adapter which limits the bytes read from an underlying reader.
236227///
237228/// This struct is generally created by calling [`take`] on a reader.
@@ -240,7 +231,6 @@ pub const fn chain<T, U>(first: T, second: U) -> Chain<T, U> {
240231/// [`take`]: ../../std/io/trait.Read.html#method.take
241232#[ stable( feature = "rust1" , since = "1.0.0" ) ]
242233#[ derive( Debug ) ]
243- #[ non_exhaustive]
244234pub struct Take < T > {
245235 #[ doc( hidden) ]
246236 #[ unstable( feature = "core_io_internals" , reason = "exposed only for libstd" , issue = "none" ) ]
@@ -405,11 +395,3 @@ impl<T> Take<T> {
405395 & mut self . inner
406396 }
407397}
408-
409- #[ doc( hidden) ]
410- #[ unstable( feature = "core_io_internals" , reason = "exposed only for libstd" , issue = "none" ) ]
411- #[ must_use]
412- #[ inline]
413- pub const fn take < T > ( inner : T , limit : u64 ) -> Take < T > {
414- Take { inner, limit, len : limit }
415- }
0 commit comments