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
-7
lines changed
tests/run-make/rustdoc-io-error Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1414// `mkfs.ext4 -d`, as well as mounting a loop device for the rootfs.
1515//@ ignore-windows - the `set_readonly` functions doesn't work on folders.
1616
17- use std:: fs;
18-
19- use run_make_support:: { path, rustdoc} ;
17+ use run_make_support:: { path, rfs, rustdoc} ;
2018
2119fn main ( ) {
2220 let out_dir = path ( "rustdoc-io-error" ) ;
23- fs :: create_dir ( & out_dir) . unwrap ( ) ;
24- let mut permissions = fs :: metadata ( & out_dir) . unwrap ( ) . permissions ( ) ;
21+ rfs :: create_dir ( & out_dir) ;
22+ let mut permissions = rfs :: metadata ( & out_dir) . permissions ( ) ;
2523 let original_permissions = permissions. clone ( ) ;
2624
2725 permissions. set_readonly ( true ) ;
28- fs :: set_permissions ( & out_dir, permissions) . unwrap ( ) ;
26+ rfs :: set_permissions ( & out_dir, permissions) ;
2927
3028 let output = rustdoc ( ) . input ( "foo.rs" ) . output ( & out_dir) . env ( "RUST_BACKTRACE" , "1" ) . run_fail ( ) ;
3129
32- fs :: set_permissions ( & out_dir, original_permissions) . unwrap ( ) ;
30+ rfs :: set_permissions ( & out_dir, original_permissions) ;
3331
3432 output
3533 . assert_exit_code ( 1 )
You can’t perform that action at this time.
0 commit comments