File tree 1 file changed +1
-4
lines changed
compiler/rustc_errors/src
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -2604,7 +2604,6 @@ fn emit_to_destination(
2604
2604
}
2605
2605
2606
2606
pub enum Destination {
2607
- Terminal ( StandardStream ) ,
2608
2607
Raw ( Box < ( dyn WriteColor + Send ) > ) ,
2609
2608
}
2610
2609
@@ -2649,7 +2648,7 @@ impl Destination {
2649
2648
// On non-Windows we rely on the atomicity of `write` to ensure errors
2650
2649
// don't get all jumbled up.
2651
2650
if cfg ! ( windows) {
2652
- Terminal ( StandardStream :: stderr ( choice) )
2651
+ Raw ( Box :: new ( StandardStream :: stderr ( choice) ) )
2653
2652
} else {
2654
2653
let buffer_writer = BufferWriter :: stderr ( choice) ;
2655
2654
let buffer = buffer_writer. buffer ( ) ;
@@ -2659,14 +2658,12 @@ impl Destination {
2659
2658
2660
2659
fn writable ( & mut self ) -> & mut dyn WriteColor {
2661
2660
match * self {
2662
- Destination :: Terminal ( ref mut t) => t,
2663
2661
Destination :: Raw ( ref mut t) => t,
2664
2662
}
2665
2663
}
2666
2664
2667
2665
fn supports_color ( & self ) -> bool {
2668
2666
match * self {
2669
- Self :: Terminal ( ref stream) => stream. supports_color ( ) ,
2670
2667
Self :: Raw ( ref writer) => writer. supports_color ( ) ,
2671
2668
}
2672
2669
}
You can’t perform that action at this time.
0 commit comments