This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
tests/run-make/doctests-keep-binaries-2024 Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 33
44use std:: path:: Path ;
55
6- use run_make_support:: fs_wrapper:: { create_dir, remove_dir_all} ;
7- use run_make_support:: { run, rustc, rustdoc} ;
6+ use run_make_support:: { rfs, run, rustc, rustdoc} ;
87
98fn setup_test_env < F : FnOnce ( & Path , & Path ) > ( callback : F ) {
109 let out_dir = Path :: new ( "doctests" ) ;
11- create_dir ( & out_dir) ;
10+ rfs :: create_dir ( & out_dir) ;
1211 rustc ( ) . input ( "t.rs" ) . crate_type ( "rlib" ) . run ( ) ;
1312 callback ( & out_dir, Path :: new ( "libt.rlib" ) ) ;
14- remove_dir_all ( out_dir) ;
13+ rfs :: remove_dir_all ( out_dir) ;
1514}
1615
1716fn check_generated_binaries ( ) {
@@ -47,7 +46,7 @@ fn main() {
4746 // Behavior with --test-run-directory with relative paths.
4847 setup_test_env ( |_, _| {
4948 let run_dir_path = Path :: new ( "rundir" ) ;
50- create_dir ( & run_dir_path) ;
49+ rfs :: create_dir ( & run_dir_path) ;
5150
5251 rustdoc ( )
5352 . input ( "t.rs" )
@@ -61,6 +60,6 @@ fn main() {
6160 . edition ( "2024" )
6261 . run ( ) ;
6362
64- remove_dir_all ( run_dir_path) ;
63+ rfs :: remove_dir_all ( run_dir_path) ;
6564 } ) ;
6665}
You can’t perform that action at this time.
0 commit comments