rustdoc: fix 98690
This commit is contained in:
parent
7b68106ffb
commit
6565509c19
3 changed files with 15 additions and 2 deletions
|
|
@ -1003,8 +1003,10 @@ impl Tester for Collector {
|
|||
let outdir = if let Some(mut path) = rustdoc_options.persist_doctests.clone() {
|
||||
path.push(&test_id);
|
||||
|
||||
std::fs::create_dir_all(&path)
|
||||
.expect("Couldn't create directory for doctest executables");
|
||||
if let Err(err) = std::fs::create_dir_all(&path) {
|
||||
eprintln!("Couldn't create directory for doctest executables: {}", err);
|
||||
panic::resume_unwind(box ());
|
||||
}
|
||||
|
||||
DirState::Perm(path)
|
||||
} else {
|
||||
|
|
|
|||
10
src/test/rustdoc-ui/issue-98690.rs
Normal file
10
src/test/rustdoc-ui/issue-98690.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// compile-flags: --test --persist-doctests /../../ -Z unstable-options
|
||||
// failure-status: 101
|
||||
// only-linux
|
||||
|
||||
#![crate_name = "foo"]
|
||||
|
||||
//! ```rust
|
||||
//! use foo::dummy;
|
||||
//! dummy();
|
||||
//! ```
|
||||
1
src/test/rustdoc-ui/issue-98690.stderr
Normal file
1
src/test/rustdoc-ui/issue-98690.stderr
Normal file
|
|
@ -0,0 +1 @@
|
|||
Couldn't create directory for doctest executables: Permission denied (os error 13)
|
||||
Loading…
Add table
Add a link
Reference in a new issue