@@ -92,10 +92,6 @@ struct Concurrency {
92
92
/// Number of units that are not yet ready, because they are waiting for
93
93
/// dependencies to finish.
94
94
inactive : usize ,
95
- /// Number of rustc "extra" threads -- i.e., how many tokens have been
96
- /// provided across all current rustc instances that are not the main thread
97
- /// tokens.
98
- rustc_parallelism : usize ,
99
95
}
100
96
101
97
impl < ' cfg > Timings < ' cfg > {
@@ -240,13 +236,7 @@ impl<'cfg> Timings<'cfg> {
240
236
}
241
237
242
238
/// This is called periodically to mark the concurrency of internal structures.
243
- pub fn mark_concurrency (
244
- & mut self ,
245
- active : usize ,
246
- waiting : usize ,
247
- inactive : usize ,
248
- rustc_parallelism : usize ,
249
- ) {
239
+ pub fn mark_concurrency ( & mut self , active : usize , waiting : usize , inactive : usize ) {
250
240
if !self . enabled {
251
241
return ;
252
242
}
@@ -255,7 +245,6 @@ impl<'cfg> Timings<'cfg> {
255
245
active,
256
246
waiting,
257
247
inactive,
258
- rustc_parallelism,
259
248
} ;
260
249
self . concurrency . push ( c) ;
261
250
}
@@ -307,7 +296,7 @@ impl<'cfg> Timings<'cfg> {
307
296
if !self . enabled {
308
297
return Ok ( ( ) ) ;
309
298
}
310
- self . mark_concurrency ( 0 , 0 , 0 , 0 ) ;
299
+ self . mark_concurrency ( 0 , 0 , 0 ) ;
311
300
self . unit_times
312
301
. sort_unstable_by ( |a, b| a. start . partial_cmp ( & b. start ) . unwrap ( ) ) ;
313
302
if self . report_html {
@@ -391,12 +380,6 @@ impl<'cfg> Timings<'cfg> {
391
380
let num_cpus = available_parallelism ( )
392
381
. map ( |x| x. get ( ) . to_string ( ) )
393
382
. unwrap_or_else ( |_| "n/a" . into ( ) ) ;
394
- let max_rustc_concurrency = self
395
- . concurrency
396
- . iter ( )
397
- . map ( |c| c. rustc_parallelism )
398
- . max ( )
399
- . unwrap ( ) ;
400
383
let rustc_info = render_rustc_info ( bcx) ;
401
384
let error_msg = match error {
402
385
Some ( e) => format ! (
@@ -440,9 +423,6 @@ impl<'cfg> Timings<'cfg> {
440
423
<tr>
441
424
<td>rustc:</td><td>{}</td>
442
425
</tr>
443
- <tr>
444
- <td>Max (global) rustc threads concurrency:</td><td>{}</td>
445
- </tr>
446
426
{}
447
427
</table>
448
428
"# ,
@@ -457,7 +437,6 @@ impl<'cfg> Timings<'cfg> {
457
437
self . start_str,
458
438
total_time,
459
439
rustc_info,
460
- max_rustc_concurrency,
461
440
error_msg,
462
441
) ?;
463
442
Ok ( ( ) )
0 commit comments