diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2023-04-08 14:24:16 +0900 | 
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2023-04-10 17:24:23 +0900 | 
| commit | afd45c2e10d9a5dbb277852384bb3d2245239f63 (patch) | |
| tree | 3939a586085accf7e880b83345ab5c1209a01053 /library/std/src/io/stdio.rs | |
| parent | 0f0dc292641cb29f441e979ea26f10e1402b931f (diff) | |
| download | rust-afd45c2e10d9a5dbb277852384bb3d2245239f63.tar.gz rust-afd45c2e10d9a5dbb277852384bb3d2245239f63.zip | |
Stabilize IsTerminal
closes: https://github.com/rust-lang/rust/issues/98070
Diffstat (limited to 'library/std/src/io/stdio.rs')
| -rw-r--r-- | library/std/src/io/stdio.rs | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/library/std/src/io/stdio.rs b/library/std/src/io/stdio.rs index 1a3200a5c62..b2c57b8ddc7 100644 --- a/library/std/src/io/stdio.rs +++ b/library/std/src/io/stdio.rs @@ -1047,7 +1047,7 @@ pub(crate) fn attempt_print_to_stderr(args: fmt::Arguments<'_>) { } /// Trait to determine if a descriptor/handle refers to a terminal/tty. -#[unstable(feature = "is_terminal", issue = "98070")] +#[stable(feature = "is_terminal", since = "CURRENT_RUSTC_VERSION")] pub trait IsTerminal: crate::sealed::Sealed { /// Returns `true` if the descriptor/handle refers to a terminal/tty. /// @@ -1063,6 +1063,7 @@ pub trait IsTerminal: crate::sealed::Sealed { /// Note that this [may change in the future][changes]. /// /// [changes]: io#platform-specific-behavior + #[stable(feature = "is_terminal", since = "CURRENT_RUSTC_VERSION")] fn is_terminal(&self) -> bool; } @@ -1071,7 +1072,7 @@ macro_rules! impl_is_terminal { #[unstable(feature = "sealed", issue = "none")] impl crate::sealed::Sealed for $t {} - #[unstable(feature = "is_terminal", issue = "98070")] + #[stable(feature = "is_terminal", since = "CURRENT_RUSTC_VERSION")] impl IsTerminal for $t { #[inline] fn is_terminal(&self) -> bool { | 
