rust/src
Matthias Krüger 51fd48f157
Rollup merge of #93099 - tomkris:rustdoc-fix, r=jsha
rustdoc: auto create output directory when "--output-format json"

This PR allows rustdoc to automatically create output directory in case it does not exist (when run with `--output-format json`).

This fixes rustdoc crash:

````
$ rustdoc --output-format json -Z unstable-options src/main.rs
error: couldn't generate documentation: No such file or directory (os error 2)
  |
  = note: failed to create or modify "doc/main.json"

error: aborting due to previous error
````

With this fix behavior of `rustdoc --output-format json` becomes consistent with `rustdoc --output-format html` (which already auto-creates output directory if it's missing)
2022-01-20 23:37:39 +01:00
..
bootstrap Rollup merge of #92800 - ehuss:docs-fallback, r=Mark-Simulacrum 2022-01-19 19:19:48 +01:00
build_helper
ci Disable docs on aarch64-apple-darwin. 2022-01-17 20:21:44 -08:00
doc Update books 2022-01-18 19:23:45 -08:00
etc Auto merge of #87648 - JulianKnodt:const_eq_constrain, r=oli-obk 2022-01-18 09:58:39 +00:00
librustdoc Rollup merge of #93099 - tomkris:rustdoc-fix, r=jsha 2022-01-20 23:37:39 +01:00
llvm-project@6b3dbcc81a Use Term in ProjectionPredicate 2022-01-17 17:44:56 +00:00
rustdoc-json-types Update term for use in more places 2022-01-17 19:59:40 +00:00
test Rollup merge of #93094 - Enselic:check-for-enum-tuple-struct-fields, r=CraftSpider 2022-01-20 23:37:37 +01:00
tools Rollup merge of #92800 - ehuss:docs-fallback, r=Mark-Simulacrum 2022-01-19 19:19:48 +01:00
README.md
stage0.json
version bump version to 1.60.0 2022-01-07 10:04:15 +01:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.