File tree 13 files changed +6
-15
lines changed
13 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 5
5
//! This API is completely unstable and subject to change.
6
6
7
7
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
8
- #![ feature( is_terminal) ]
9
8
#![ feature( lazy_cell) ]
10
9
#![ feature( decl_macro) ]
11
10
#![ recursion_limit = "256" ]
Original file line number Diff line number Diff line change 6
6
#![ feature( array_windows) ]
7
7
#![ feature( drain_filter) ]
8
8
#![ feature( if_let_guard) ]
9
- #![ feature( is_terminal) ]
10
9
#![ feature( adt_const_params) ]
11
10
#![ feature( let_chains) ]
12
11
#![ feature( never_type) ]
Original file line number Diff line number Diff line change 40
40
41
41
#![ deny( rustc:: untranslatable_diagnostic) ]
42
42
#![ deny( rustc:: diagnostic_outside_of_impl) ]
43
- #![ feature( is_terminal) ]
44
43
45
44
use std:: env:: { self , VarError } ;
46
45
use std:: fmt:: { self , Display } ;
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ pub(crate) use self::stdio::attempt_print_to_stderr;
268
268
#[ unstable( feature = "internal_output_capture" , issue = "none" ) ]
269
269
#[ doc( no_inline, hidden) ]
270
270
pub use self :: stdio:: set_output_capture;
271
- #[ unstable ( feature = "is_terminal" , issue = "98070 " ) ]
271
+ #[ stable ( feature = "is_terminal" , since = "CURRENT_RUSTC_VERSION " ) ]
272
272
pub use self :: stdio:: IsTerminal ;
273
273
#[ unstable( feature = "print_internals" , issue = "none" ) ]
274
274
pub use self :: stdio:: { _eprint, _print} ;
Original file line number Diff line number Diff line change @@ -1047,7 +1047,7 @@ pub(crate) fn attempt_print_to_stderr(args: fmt::Arguments<'_>) {
1047
1047
}
1048
1048
1049
1049
/// Trait to determine if a descriptor/handle refers to a terminal/tty.
1050
- #[ unstable ( feature = "is_terminal" , issue = "98070 " ) ]
1050
+ #[ stable ( feature = "is_terminal" , since = "CURRENT_RUSTC_VERSION " ) ]
1051
1051
pub trait IsTerminal : crate :: sealed:: Sealed {
1052
1052
/// Returns `true` if the descriptor/handle refers to a terminal/tty.
1053
1053
///
@@ -1063,6 +1063,7 @@ pub trait IsTerminal: crate::sealed::Sealed {
1063
1063
/// Note that this [may change in the future][changes].
1064
1064
///
1065
1065
/// [changes]: io#platform-specific-behavior
1066
+ #[ stable( feature = "is_terminal" , since = "CURRENT_RUSTC_VERSION" ) ]
1066
1067
fn is_terminal ( & self ) -> bool ;
1067
1068
}
1068
1069
@@ -1071,7 +1072,7 @@ macro_rules! impl_is_terminal {
1071
1072
#[ unstable( feature = "sealed" , issue = "none" ) ]
1072
1073
impl crate :: sealed:: Sealed for $t { }
1073
1074
1074
- #[ unstable ( feature = "is_terminal" , issue = "98070 " ) ]
1075
+ #[ stable ( feature = "is_terminal" , since = "CURRENT_RUSTC_VERSION " ) ]
1075
1076
impl IsTerminal for $t {
1076
1077
#[ inline]
1077
1078
fn is_terminal( & self ) -> bool {
Original file line number Diff line number Diff line change 254
254
#![ feature( exhaustive_patterns) ]
255
255
#![ feature( if_let_guard) ]
256
256
#![ feature( intra_doc_pointers) ]
257
- #![ feature( is_terminal) ]
258
257
#![ feature( lang_items) ]
259
258
#![ feature( let_chains) ]
260
259
#![ feature( linkage) ]
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ macro_rules! impl_is_terminal {
201
201
#[ unstable( feature = "sealed" , issue = "none" ) ]
202
202
impl crate :: sealed:: Sealed for $t { }
203
203
204
- #[ unstable ( feature = "is_terminal" , issue = "98070 " ) ]
204
+ #[ stable ( feature = "is_terminal" , since = "CURRENT_RUSTC_VERSION " ) ]
205
205
impl crate :: io:: IsTerminal for $t {
206
206
#[ inline]
207
207
fn is_terminal( & self ) -> bool {
Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ macro_rules! impl_is_terminal {
389
389
#[ unstable( feature = "sealed" , issue = "none" ) ]
390
390
impl crate :: sealed:: Sealed for $t { }
391
391
392
- #[ unstable ( feature = "is_terminal" , issue = "98070 " ) ]
392
+ #[ stable ( feature = "is_terminal" , since = "CURRENT_RUSTC_VERSION " ) ]
393
393
impl crate :: io:: IsTerminal for $t {
394
394
#[ inline]
395
395
fn is_terminal( & self ) -> bool {
Original file line number Diff line number Diff line change 17
17
#![ unstable( feature = "test" , issue = "50297" ) ]
18
18
#![ doc( test( attr( deny( warnings) ) ) ) ]
19
19
#![ feature( internal_output_capture) ]
20
- #![ feature( is_terminal) ]
21
20
#![ feature( staged_api) ]
22
21
#![ feature( process_exitcode_internals) ]
23
22
#![ feature( panic_can_unwind) ]
Original file line number Diff line number Diff line change 7
7
#![ feature( assert_matches) ]
8
8
#![ feature( box_patterns) ]
9
9
#![ feature( drain_filter) ]
10
- #![ feature( is_terminal) ]
11
10
#![ feature( let_chains) ]
12
11
#![ feature( test) ]
13
12
#![ feature( never_type) ]
Original file line number Diff line number Diff line change 7
7
#![ feature( yeet_expr) ]
8
8
#![ feature( nonzero_ops) ]
9
9
#![ feature( local_key_cell_methods) ]
10
- #![ feature( is_terminal) ]
11
10
#![ feature( round_ties_even) ]
12
11
// Configure clippy and other lints
13
12
#![ allow(
Original file line number Diff line number Diff line change 3
3
4
4
#![ feature( io_error_more) ]
5
5
#![ feature( io_error_uncategorized) ]
6
- #![ feature( is_terminal) ]
7
6
8
7
use std:: collections:: HashMap ;
9
8
use std:: ffi:: { c_char, OsString } ;
Original file line number Diff line number Diff line change 1
- #![ feature( is_terminal) ]
2
-
3
1
use std:: io:: IsTerminal ;
4
2
5
3
fn main ( ) {
You can’t perform that action at this time.
0 commit comments