@@ -232,6 +232,10 @@ impl Options {
232
232
for & name in passes:: DEFAULT_COVERAGE_PASSES {
233
233
println ! ( "{:>20}" , name) ;
234
234
}
235
+ println ! ( "\n Passes run with `--show-coverage --document-private-items`:" ) ;
236
+ for & name in passes:: PRIVATE_COVERAGE_PASSES {
237
+ println ! ( "{:>20}" , name) ;
238
+ }
235
239
return Err ( 0 ) ;
236
240
}
237
241
@@ -421,17 +425,21 @@ impl Options {
421
425
}
422
426
} ) ;
423
427
428
+ let show_coverage = matches. opt_present ( "show-coverage" ) ;
429
+ let document_private = matches. opt_present ( "document-private-items" ) ;
430
+
424
431
let default_passes = if matches. opt_present ( "no-defaults" ) {
425
432
passes:: DefaultPassOption :: None
426
- } else if matches. opt_present ( "show-coverage" ) {
433
+ } else if show_coverage && document_private {
434
+ passes:: DefaultPassOption :: PrivateCoverage
435
+ } else if show_coverage {
427
436
passes:: DefaultPassOption :: Coverage
428
- } else if matches . opt_present ( "document-private-items" ) {
437
+ } else if document_private {
429
438
passes:: DefaultPassOption :: Private
430
439
} else {
431
440
passes:: DefaultPassOption :: Default
432
441
} ;
433
442
let manual_passes = matches. opt_strs ( "passes" ) ;
434
- let show_coverage = matches. opt_present ( "show-coverage" ) ;
435
443
436
444
let crate_name = matches. opt_str ( "crate-name" ) ;
437
445
let playground_url = matches. opt_str ( "playground-url" ) ;
0 commit comments