File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
compiler/rustc_session/src Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use std::{
6
6
} ;
7
7
8
8
use indicatif:: { MultiProgress , ProgressBar , ProgressStyle } ;
9
- use rustc_data_structures:: fx:: FxHashMap ;
9
+ use rustc_data_structures:: { fx:: FxHashMap , sync :: IntoDynSyncSend } ;
10
10
11
11
use crate :: Session ;
12
12
@@ -15,7 +15,7 @@ thread_local! {
15
15
}
16
16
17
17
pub struct ProgressBars {
18
- sender : Sender < Msg > ,
18
+ sender : IntoDynSyncSend < Sender < Msg > > ,
19
19
}
20
20
21
21
enum Msg {
@@ -70,8 +70,10 @@ impl Session {
70
70
}
71
71
}
72
72
} ) ;
73
- ProgressBars { sender }
73
+ ProgressBars { sender : IntoDynSyncSend ( sender ) }
74
74
}
75
+
76
+ /// Append a new spinner to the current stack
75
77
pub fn push_spinner ( & self , bars : & ProgressBars , name : & ' static str ) -> impl Sized {
76
78
let thread = std:: thread:: current ( ) . id ( ) ;
77
79
bars. sender . send ( Msg :: Push { thread, name } ) . unwrap ( ) ;
@@ -81,6 +83,6 @@ impl Session {
81
83
self . 0 . send ( Msg :: Pop { thread : self . 1 } ) . unwrap ( ) ;
82
84
}
83
85
}
84
- Spinner ( bars. sender . clone ( ) , thread)
86
+ Spinner ( bars. sender . 0 . clone ( ) , thread)
85
87
}
86
88
}
You can’t perform that action at this time.
0 commit comments