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 @@ -3734,7 +3734,6 @@ dependencies = [
37343734name = " rustc_interface"
37353735version = " 0.0.0"
37363736dependencies = [
3737- " atty" ,
37383737 " libloading" ,
37393738 " rustc-rayon" ,
37403739 " rustc-rayon-core" ,
@@ -4198,7 +4197,6 @@ dependencies = [
41984197name = " rustc_session"
41994198version = " 0.0.0"
42004199dependencies = [
4201- " atty" ,
42024200 " bitflags 1.3.2" ,
42034201 " getopts" ,
42044202 " 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