Rollup merge of #110072 - joshtriplett:stabilize-is-terminal, r=Mark-Simulacrum
Stabilize IsTerminal FCP completed in https://github.com/rust-lang/rust/issues/98070 . closes: https://github.com/rust-lang/rust/issues/98070
This commit is contained in:
commit
6161fb8c65
13 changed files with 6 additions and 15 deletions
|
@ -268,7 +268,7 @@ pub(crate) use self::stdio::attempt_print_to_stderr;
|
|||
#[unstable(feature = "internal_output_capture", issue = "none")]
|
||||
#[doc(no_inline, hidden)]
|
||||
pub use self::stdio::set_output_capture;
|
||||
#[unstable(feature = "is_terminal", issue = "98070")]
|
||||
#[stable(feature = "is_terminal", since = "CURRENT_RUSTC_VERSION")]
|
||||
pub use self::stdio::IsTerminal;
|
||||
#[unstable(feature = "print_internals", issue = "none")]
|
||||
pub use self::stdio::{_eprint, _print};
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -254,7 +254,6 @@
|
|||
#![feature(exhaustive_patterns)]
|
||||
#![feature(if_let_guard)]
|
||||
#![feature(intra_doc_pointers)]
|
||||
#![feature(is_terminal)]
|
||||
#![feature(lang_items)]
|
||||
#![feature(let_chains)]
|
||||
#![feature(linkage)]
|
||||
|
|
|
@ -201,7 +201,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 crate::io::IsTerminal for $t {
|
||||
#[inline]
|
||||
fn is_terminal(&self) -> bool {
|
||||
|
|
|
@ -389,7 +389,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 crate::io::IsTerminal for $t {
|
||||
#[inline]
|
||||
fn is_terminal(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue