Minor changes to wording and formatting.
This commit is contained in:
parent
22e97da30a
commit
80ee94c1f8
7 changed files with 10 additions and 6 deletions
|
|
@ -68,7 +68,7 @@ pub struct Options {
|
|||
pub should_test: bool,
|
||||
/// List of arguments to pass to the test harness, if running tests.
|
||||
pub test_args: Vec<String>,
|
||||
/// Whether to persist the doctest executables.
|
||||
/// Otional path to persist the doctest executables to.
|
||||
pub persist_doctests: Option<PathBuf>,
|
||||
|
||||
// Options that affect the documentation process
|
||||
|
|
@ -123,6 +123,7 @@ impl fmt::Debug for Options {
|
|||
.field("lint_cap", &self.lint_cap)
|
||||
.field("should_test", &self.should_test)
|
||||
.field("test_args", &self.test_args)
|
||||
.field("persist_doctests", &self.persist_doctests)
|
||||
.field("default_passes", &self.default_passes)
|
||||
.field("manual_passes", &self.manual_passes)
|
||||
.field("display_warnings", &self.display_warnings)
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ fn opts() -> Vec<RustcOptGroup> {
|
|||
unstable("persist-doctests", |o| {
|
||||
o.optopt("",
|
||||
"persist-doctests",
|
||||
"Persists the rustdoc test executables",
|
||||
"Directory to persist doctest executables into",
|
||||
"PATH")
|
||||
}),
|
||||
]
|
||||
|
|
|
|||
|
|
@ -290,7 +290,8 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize,
|
|||
.rsplit('/')
|
||||
.next()
|
||||
.unwrap()
|
||||
.replace(".", "_"), line)
|
||||
.replace(".", "_"),
|
||||
line)
|
||||
);
|
||||
std::fs::create_dir_all(&path)
|
||||
.expect("Couldn't create directory for doctest executables");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue