@@ -26,7 +26,7 @@ use crate::clean::Attributes;
26
26
use crate :: config:: Options ;
27
27
use crate :: html:: markdown:: { self , ErrorCodes , LangString , Ignore } ;
28
28
29
- #[ derive( Clone , Default ) ]
29
+ #[ derive( Clone , Default , Debug ) ]
30
30
pub struct TestOptions {
31
31
/// Whether to disable the default `extern crate my_crate;` when creating doctests.
32
32
pub no_crate_inject : bool ,
@@ -640,6 +640,19 @@ pub struct Collector {
640
640
filename : Option < PathBuf > ,
641
641
}
642
642
643
+ impl :: std:: fmt:: Debug for Collector {
644
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
645
+ f. debug_struct ( "Collector" )
646
+ . field ( "tests" , & self . tests )
647
+ . field ( "options" , & self . options )
648
+ . field ( "use_headers" , & self . use_headers )
649
+ . field ( "enable_per_target_ignores" , & self . enable_per_target_ignores )
650
+ . field ( "cratename" , & self . cratename )
651
+ . field ( "opts" , & self . opts )
652
+ . finish ( )
653
+ }
654
+ }
655
+
643
656
impl Collector {
644
657
pub fn new ( cratename : String , options : Options , use_headers : bool , opts : TestOptions ,
645
658
source_map : Option < Lrc < SourceMap > > , filename : Option < PathBuf > ,
0 commit comments