File tree 5 files changed +4
-6
lines changed
5 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -3734,7 +3734,6 @@ dependencies = [
3734
3734
name = " rustc_interface"
3735
3735
version = " 0.0.0"
3736
3736
dependencies = [
3737
- " atty" ,
3738
3737
" libloading" ,
3739
3738
" rustc-rayon" ,
3740
3739
" rustc-rayon-core" ,
@@ -4198,7 +4197,6 @@ dependencies = [
4198
4197
name = " rustc_session"
4199
4198
version = " 0.0.0"
4200
4199
dependencies = [
4201
- " atty" ,
4202
4200
" bitflags 1.3.2" ,
4203
4201
" getopts" ,
4204
4202
" libc" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ edition = "2021"
6
6
[lib ]
7
7
8
8
[dependencies ]
9
- atty = " 0.2.13"
10
9
libloading = " 0.7.1"
11
10
tracing = " 0.1"
12
11
rustc-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(
519
519
output_types : & OutputTypes ,
520
520
single_output_file_is_stdout : bool ,
521
521
) -> bool {
522
- if atty:: is ( atty:: Stream :: Stdout ) {
522
+ use std:: io:: IsTerminal ;
523
+ if std:: io:: stdout ( ) . is_terminal ( ) {
523
524
// If stdout is a tty, check if multiple text output types are
524
525
// specified by `--emit foo=- --emit bar=-` or `-o - --emit foo,bar`
525
526
let named_text_types = output_types
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ version = "0.0.0"
4
4
edition = " 2021"
5
5
6
6
[dependencies ]
7
- atty = " 0.2.13"
8
7
bitflags = " 1.2.1"
9
8
getopts = " 0.2"
10
9
rustc_macros = { path = " ../rustc_macros" }
Original file line number Diff line number Diff line change @@ -834,9 +834,10 @@ impl OutFileName {
834
834
}
835
835
836
836
pub fn is_tty ( & self ) -> bool {
837
+ use std:: io:: IsTerminal ;
837
838
match * self {
838
839
OutFileName :: Real ( _) => false ,
839
- OutFileName :: Stdout => atty :: is ( atty :: Stream :: Stdout ) ,
840
+ OutFileName :: Stdout => std :: io :: stdout ( ) . is_terminal ( ) ,
840
841
}
841
842
}
842
843
You can’t perform that action at this time.
0 commit comments