File tree Expand file tree Collapse file tree 7 files changed +31
-1
lines changed
Expand file tree Collapse file tree 7 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ pub mod bstr;
294294pub mod cell;
295295pub mod char;
296296pub mod ffi;
297- #[ unstable( feature = "core_io_borrowed_buf " , issue = "117693 " ) ]
297+ #[ unstable( feature = "core_io " , issue = "154046 " ) ]
298298pub mod io;
299299pub mod iter;
300300pub mod net;
Original file line number Diff line number Diff line change 3535#![ feature( const_unsigned_bigint_helpers) ]
3636#![ feature( core_intrinsics) ]
3737#![ feature( core_intrinsics_fallbacks) ]
38+ #![ feature( core_io) ]
3839#![ feature( core_io_borrowed_buf) ]
3940#![ feature( core_private_bignum) ]
4041#![ feature( core_private_diy_float) ]
Original file line number Diff line number Diff line change 320320#![ feature( const_default) ]
321321#![ feature( core_float_math) ]
322322#![ feature( core_intrinsics) ]
323+ #![ feature( core_io) ]
323324#![ feature( core_io_borrowed_buf) ]
324325#![ feature( cstr_display) ]
325326#![ feature( drop_guard) ]
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ pub trait FileExt {
140140 /// # Examples
141141 ///
142142 /// ```no_run
143+ /// #![feature(core_io)]
143144 /// #![feature(core_io_borrowed_buf)]
144145 /// #![feature(read_buf_at)]
145146 ///
@@ -176,6 +177,7 @@ pub trait FileExt {
176177 /// # Examples
177178 ///
178179 /// ```no_run
180+ /// #![feature(core_io)]
179181 /// #![feature(core_io_borrowed_buf)]
180182 /// #![feature(read_buf_at)]
181183 ///
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ pub trait FileExt {
6161 /// # Examples
6262 ///
6363 /// ```no_run
64+ /// #![feature(core_io)]
6465 /// #![feature(core_io_borrowed_buf)]
6566 /// #![feature(read_buf_at)]
6667 ///
Original file line number Diff line number Diff line change 1+ // Ensure `ErrorKind` from `core` is gated behind `io_error_kind_in_core`
2+ //@ edition:2024
3+
4+ use std:: io:: ErrorKind as ErrorKindFromStd ;
5+
6+ use core:: io:: ErrorKind as ErrorKindFromCore ;
7+ //~^ ERROR use of unstable library feature `core_io`
8+
9+ // Asserting both ErrorKinds are the same.
10+ const _: [ ErrorKindFromCore ; 1 ] = [ ErrorKindFromStd :: Other ] ;
11+
12+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ error[E0658]: use of unstable library feature `core_io`
2+ --> $DIR/feature-gate-io_error_kind_in_core.rs:6:5
3+ |
4+ LL | use core::io::ErrorKind as ErrorKindFromCore;
5+ | ^^^^^^^^^^^^^^^^^^^
6+ |
7+ = note: see issue #154046 <https://github.com/rust-lang/rust/issues/154046> for more information
8+ = help: add `#![feature(core_io)]` to the crate attributes to enable
9+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
10+
11+ error: aborting due to 1 previous error
12+
13+ For more information about this error, try `rustc --explain E0658`.
You can’t perform that action at this time.
0 commit comments