File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #[ unstable( feature = "alloc_io" , issue = "154046" ) ]
2+ pub use core:: io:: ErrorKind ;
3+ #[ unstable( feature = "raw_os_error_ty" , issue = "107792" ) ]
4+ pub use core:: io:: RawOsError ;
Original file line number Diff line number Diff line change 1+ //! Traits, helpers, and type definitions for core I/O functionality.
2+
3+ mod error;
4+
5+ #[ unstable( feature = "core_io_borrowed_buf" , issue = "117693" ) ]
6+ pub use core:: io:: { BorrowedBuf , BorrowedCursor } ;
7+
8+ #[ unstable( feature = "alloc_io" , issue = "154046" ) ]
9+ pub use self :: error:: ErrorKind ;
10+ #[ unstable( feature = "raw_os_error_ty" , issue = "107792" ) ]
11+ pub use self :: error:: RawOsError ;
Original file line number Diff line number Diff line change 111111#![ feature( const_try) ]
112112#![ feature( copied_into_inner) ]
113113#![ feature( core_intrinsics) ]
114+ #![ feature( core_io) ]
115+ #![ feature( core_io_borrowed_buf) ]
116+ #![ feature( core_io_internals) ]
114117#![ feature( deprecated_suggestion) ]
115118#![ feature( deref_pure_trait) ]
116119#![ feature( diagnostic_on_move) ]
141144#![ feature( ptr_alignment_type) ]
142145#![ feature( ptr_internals) ]
143146#![ feature( ptr_metadata) ]
147+ #![ feature( raw_os_error_ty) ]
144148#![ feature( rev_into_inner) ]
145149#![ feature( set_ptr_value) ]
146150#![ feature( sized_type_properties) ]
@@ -228,6 +232,8 @@ pub mod collections;
228232pub mod ffi;
229233pub mod fmt;
230234pub mod intrinsics;
235+ #[ unstable( feature = "alloc_io" , issue = "154046" ) ]
236+ pub mod io;
231237#[ cfg( not( no_rc) ) ]
232238pub mod rc;
233239pub mod slice;
Original file line number Diff line number Diff line change 22mod tests;
33
44#[ stable( feature = "rust1" , since = "1.0.0" ) ]
5- pub use core :: io:: ErrorKind ;
5+ pub use alloc_crate :: io:: ErrorKind ;
66#[ unstable( feature = "raw_os_error_ty" , issue = "107792" ) ]
7- pub use core :: io:: RawOsError ;
7+ pub use alloc_crate :: io:: RawOsError ;
88
99// On 64-bit platforms, `io::Error` may use a bit-packed representation to
1010// reduce size. However, this representation assumes that error codes are
Original file line number Diff line number Diff line change 380380//
381381// Library features (alloc):
382382// tidy-alphabetical-start
383+ #![ feature( alloc_io) ]
383384#![ feature( allocator_api) ]
384385#![ feature( clone_from_ref) ]
385386#![ feature( get_mut_unchecked) ]
You can’t perform that action at this time.
0 commit comments