File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,22 @@ impl<'a> JobQueue<'a> {
180
180
// After a job has finished we update our internal state if it was
181
181
// successful and otherwise wait for pending work to finish if it failed
182
182
// and then immediately return.
183
+ //
184
+ // TODO: the progress bar should be re-enabled but unfortunately it's
185
+ // difficult to do so right now due to how compiler error messages
186
+ // work. Cargo doesn't redirect stdout/stderr of compiler
187
+ // processes so errors are not captured, and Cargo doesn't know
188
+ // when an error is being printed, meaning that a progress bar
189
+ // will get jumbled up in the output! To reenable this progress
190
+ // bar we'll need to probably capture the stderr of rustc and
191
+ // capture compiler error messages, but that also means
192
+ // reproducing rustc's styling of error messages which is
193
+ // currently a pretty big task. This is issue #5695. Note that
194
+ // when reenabling it'd also probably be good to fix #5697 while
195
+ // we're at it.
183
196
let mut error = None ;
184
197
let mut progress = Progress :: with_style ( "Building" , ProgressStyle :: Ratio , cx. bcx . config ) ;
198
+ progress. disable ( ) ;
185
199
let total = self . queue . len ( ) ;
186
200
loop {
187
201
// Dequeue as much work as we can, learning about everything
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ impl<'cfg> Progress<'cfg> {
58
58
}
59
59
}
60
60
61
+ pub fn disable ( & mut self ) {
62
+ self . state = None ;
63
+ }
64
+
61
65
pub fn new ( name : & str , cfg : & ' cfg Config ) -> Progress < ' cfg > {
62
66
Self :: with_style ( name, ProgressStyle :: Percentage , cfg)
63
67
}
You can’t perform that action at this time.
0 commit comments