@@ -167,11 +167,7 @@ crate fn run(options: Options) -> Result<(), ErrorReported> {
167
167
168
168
test_args. insert ( 0 , "rustdoctest" . to_string ( ) ) ;
169
169
170
- testing:: test_main (
171
- & test_args,
172
- tests,
173
- Some ( testing:: Options :: new ( ) . display_output ( display_warnings) ) ,
174
- ) ;
170
+ test:: test_main ( & test_args, tests, Some ( test:: Options :: new ( ) . display_output ( display_warnings) ) ) ;
175
171
176
172
// Collect and warn about unused externs, but only if we've gotten
177
173
// reports for each doctest
@@ -769,7 +765,7 @@ crate trait Tester {
769
765
}
770
766
771
767
crate struct Collector {
772
- crate tests : Vec < testing :: TestDescAndFn > ,
768
+ crate tests : Vec < test :: TestDescAndFn > ,
773
769
774
770
// The name of the test displayed to the user, separated by `::`.
775
771
//
@@ -930,22 +926,22 @@ impl Tester for Collector {
930
926
} ;
931
927
932
928
debug ! ( "creating test {}: {}" , name, test) ;
933
- self . tests . push ( testing :: TestDescAndFn {
934
- desc : testing :: TestDesc {
935
- name : testing :: DynTestName ( name) ,
929
+ self . tests . push ( test :: TestDescAndFn {
930
+ desc : test :: TestDesc {
931
+ name : test :: DynTestName ( name) ,
936
932
ignore : match config. ignore {
937
933
Ignore :: All => true ,
938
934
Ignore :: None => false ,
939
935
Ignore :: Some ( ref ignores) => ignores. iter ( ) . any ( |s| target_str. contains ( s) ) ,
940
936
} ,
941
937
// compiler failures are test failures
942
- should_panic : testing :: ShouldPanic :: No ,
938
+ should_panic : test :: ShouldPanic :: No ,
943
939
allow_fail : config. allow_fail ,
944
940
compile_fail : config. compile_fail ,
945
941
no_run,
946
- test_type : testing :: TestType :: DocTest ,
942
+ test_type : test :: TestType :: DocTest ,
947
943
} ,
948
- testfn : testing :: DynTestFn ( box move || {
944
+ testfn : test :: DynTestFn ( box move || {
949
945
let report_unused_externs = |uext| {
950
946
unused_externs. lock ( ) . unwrap ( ) . push ( uext) ;
951
947
} ;
0 commit comments