File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -428,6 +428,11 @@ pub enum Subcommand {
428428 #[ arg( long) ]
429429 /// Ignore `//@ ignore-backends` directives.
430430 bypass_ignore_backends : bool ,
431+
432+ /// Deprecated. Use `--all-targets` or `--tests` instead.
433+ #[ arg( long) ]
434+ #[ doc( hidden) ]
435+ no_doc : bool ,
431436 } ,
432437 /// Build and run some test suites *in Miri*
433438 Miri {
@@ -447,6 +452,11 @@ pub enum Subcommand {
447452 /// Only run unit and integration tests
448453 #[ arg( long) ]
449454 tests : bool ,
455+
456+ /// Deprecated. Use `--all-targets` or `--tests` instead.
457+ #[ arg( long) ]
458+ #[ doc( hidden) ]
459+ no_doc : bool ,
450460 } ,
451461 /// Build and run some benchmarks
452462 Bench {
@@ -577,6 +587,13 @@ impl Subcommand {
577587 }
578588 }
579589
590+ pub fn no_doc ( & self ) -> bool {
591+ match * self {
592+ Subcommand :: Test { no_doc, .. } | Subcommand :: Miri { no_doc, .. } => no_doc,
593+ _ => false ,
594+ }
595+ }
596+
580597 pub fn bless ( & self ) -> bool {
581598 match * self {
582599 Subcommand :: Test { bless, .. } => bless,
Original file line number Diff line number Diff line change @@ -450,6 +450,10 @@ impl Build {
450450 ///
451451 /// By default all build output will be placed in the current directory.
452452 pub fn new ( mut config : Config ) -> Build {
453+ if config. cmd . no_doc ( ) {
454+ panic ! ( "DEPRECATED: `--no-doc` is deprecated. Use `--all-targets` or `--tests`." )
455+ }
456+
453457 let src = config. src . clone ( ) ;
454458 let out = config. out . clone ( ) ;
455459
You can’t perform that action at this time.
0 commit comments