Skip to content

Commit 09cad1b

Browse files
committed
Add book section and fix typo.
1 parent 80ee94c commit 09cad1b

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

src/dlmalloc

-1
This file was deleted.

src/doc/rustdoc/src/unstable-features.md

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

src/libcompiler_builtins

-1
This file was deleted.

src/liblibc

-1
This file was deleted.

src/librustdoc/config.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ pub struct Options {
6868
pub should_test: bool,
6969
/// List of arguments to pass to the test harness, if running tests.
7070
pub test_args: Vec<String>,
71-
/// Otional path to persist the doctest executables to.
71+
/// Optional path to persist the doctest executables to, defaults to a
72+
/// temporary directory if not set.
7273
pub persist_doctests: Option<PathBuf>,
7374

7475
// Options that affect the documentation process

src/librustdoc/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ fn opts() -> Vec<RustcOptGroup> {
340340
o.optflag("",
341341
"disable-per-crate-search",
342342
"disables generating the crate selector on the search box")
343+
}),
343344
unstable("persist-doctests", |o| {
344345
o.optopt("",
345346
"persist-doctests",

0 commit comments

Comments
 (0)