This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +4
-6
lines changed Expand file tree Collapse file tree 5 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -3732,7 +3732,6 @@ dependencies = [
37323732name = " rustc_interface"
37333733version = " 0.0.0"
37343734dependencies = [
3735- " atty" ,
37363735 " libloading" ,
37373736 " rustc-rayon" ,
37383737 " rustc-rayon-core" ,
@@ -4196,7 +4195,6 @@ dependencies = [
41964195name = " rustc_session"
41974196version = " 0.0.0"
41984197dependencies = [
4199- " atty" ,
42004198 " bitflags 1.3.2" ,
42014199 " getopts" ,
42024200 " libc" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ edition = "2021"
66[lib ]
77
88[dependencies ]
9- atty = " 0.2.13"
109libloading = " 0.7.1"
1110tracing = " 0.1"
1211rustc-rayon-core = { version = " 0.5.0" , optional = true }
Original file line number Diff line number Diff line change @@ -519,7 +519,8 @@ fn multiple_output_types_to_stdout(
519519 output_types : & OutputTypes ,
520520 single_output_file_is_stdout : bool ,
521521) -> bool {
522- if atty:: is ( atty:: Stream :: Stdout ) {
522+ use std:: io:: IsTerminal ;
523+ if std:: io:: stdout ( ) . is_terminal ( ) {
523524 // If stdout is a tty, check if multiple text output types are
524525 // specified by `--emit foo=- --emit bar=-` or `-o - --emit foo,bar`
525526 let named_text_types = output_types
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ version = "0.0.0"
44edition = " 2021"
55
66[dependencies ]
7- atty = " 0.2.13"
87bitflags = " 1.2.1"
98getopts = " 0.2"
109rustc_macros = { path = " ../rustc_macros" }
Original file line number Diff line number Diff line change @@ -834,9 +834,10 @@ impl OutFileName {
834834 }
835835
836836 pub fn is_tty(&self) -> bool {
837+ use std::io::IsTerminal;
837838 match *self {
838839 OutFileName::Real(_) => false,
839- OutFileName :: Stdout => atty :: is ( atty :: Stream :: Stdout ) ,
840+ OutFileName::Stdout => std::io::stdout().is_terminal( ),
840841 }
841842 }
842843
You can’t perform that action at this time.
0 commit comments