Add book section and fix typo.

This commit is contained in:
Wesley Norris
2018-12-31 18:05:57 -05:00
parent 80ee94c1f8
commit 09cad1b8a5
6 changed files with 7 additions and 4 deletions

Submodule src/dlmalloc deleted from c99638dc2e

View File

@@ -417,3 +417,7 @@ JavaScript, and font files in a single location, rather than duplicating it once
(grouping of crate docs generated into the same output directory, like with `cargo doc`). Per-crate (grouping of crate docs generated into the same output directory, like with `cargo doc`). Per-crate
files like the search index will still load from the documentation root, but anything that gets files like the search index will still load from the documentation root, but anything that gets
renamed with `--resource-suffix` will load from the given path. renamed with `--resource-suffix` will load from the given path.
### `--persist-doctests`: persist doctest executables after running
This feature allows the persistence of the doctest executables to the specified path.

Submodule src/libcompiler_builtins deleted from fe74674f6e

Submodule src/liblibc deleted from c75ca6465a

View File

@@ -68,7 +68,8 @@ pub struct Options {
pub should_test: bool, pub should_test: bool,
/// List of arguments to pass to the test harness, if running tests. /// List of arguments to pass to the test harness, if running tests.
pub test_args: Vec<String>, pub test_args: Vec<String>,
/// Otional path to persist the doctest executables to. /// Optional path to persist the doctest executables to, defaults to a
/// temporary directory if not set.
pub persist_doctests: Option<PathBuf>, pub persist_doctests: Option<PathBuf>,
// Options that affect the documentation process // Options that affect the documentation process

View File

@@ -340,6 +340,7 @@ fn opts() -> Vec<RustcOptGroup> {
o.optflag("", o.optflag("",
"disable-per-crate-search", "disable-per-crate-search",
"disables generating the crate selector on the search box") "disables generating the crate selector on the search box")
}),
unstable("persist-doctests", |o| { unstable("persist-doctests", |o| {
o.optopt("", o.optopt("",
"persist-doctests", "persist-doctests",