about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-03-28 15:21:58 +0100
committerGitHub <noreply@github.com>2020-03-28 15:21:58 +0100
commitbbd3634f5f22e3e58cc570c37626625ef4109c14 (patch)
treedb0fff6aff357a6d48c93d640735cb56576c8b50 /src/libstd/sys/unix/stack_overflow.rs
parent1f13089bef91e8410bca87b2f42e6fbbc2bbfd9e (diff)
parent6a744ea4d515a70c5c90fef85cfa4c7ba8ae7f53 (diff)
downloadrust-bbd3634f5f22e3e58cc570c37626625ef4109c14.tar.gz
rust-bbd3634f5f22e3e58cc570c37626625ef4109c14.zip
Rollup merge of #70448 - TimotheeGerber:rustdoc-create-output-dir, r=GuillaumeGomez
Create output dir in rustdoc markdown render

`rustdoc` command on a standalone markdown document fails because the output directory (which default to `doc/`) is not created, even when specified with the `--output` argument.

This PR adds the creation of the output directory before the file creation to avoid an unexpected error which is unclear.

I am not sure about the returned error code. I did not find a table explaining them. So I simply put the same error code that is returned when `File::create` fails because they are both related to file-system errors.

Resolve #70431
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions