Skip to content

Commit 80ee94c

Browse files
committed
Minor changes to wording and formatting.
1 parent 22e97da commit 80ee94c

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

src/dlmalloc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit c99638dc2ecfc750cc1656f6edb2bd062c1e0981

src/libcompiler_builtins

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit fe74674f6e4be76d47b66f67d529ebf4186f4eb1

src/liblibc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit c75ca6465a139704e00295be355b1f067af2f535

src/librustdoc/config.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ 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-
/// Whether to persist the doctest executables.
71+
/// Otional path to persist the doctest executables to.
7272
pub persist_doctests: Option<PathBuf>,
7373

7474
// Options that affect the documentation process
@@ -123,6 +123,7 @@ impl fmt::Debug for Options {
123123
.field("lint_cap", &self.lint_cap)
124124
.field("should_test", &self.should_test)
125125
.field("test_args", &self.test_args)
126+
.field("persist_doctests", &self.persist_doctests)
126127
.field("default_passes", &self.default_passes)
127128
.field("manual_passes", &self.manual_passes)
128129
.field("display_warnings", &self.display_warnings)

src/librustdoc/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ fn opts() -> Vec<RustcOptGroup> {
343343
unstable("persist-doctests", |o| {
344344
o.optopt("",
345345
"persist-doctests",
346-
"Persists the rustdoc test executables",
346+
"Directory to persist doctest executables into",
347347
"PATH")
348348
}),
349349
]

src/librustdoc/test.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize,
290290
.rsplit('/')
291291
.next()
292292
.unwrap()
293-
.replace(".", "_"), line)
293+
.replace(".", "_"),
294+
line)
294295
);
295296
std::fs::create_dir_all(&path)
296297
.expect("Couldn't create directory for doctest executables");

src/test/rustdoc-ui/failed-doctest-output.stdout

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ error[E0425]: cannot find value `no` in this scope
1212
3 | no
1313
| ^^ not found in this scope
1414

15-
16-
thread '$DIR/failed-doctest-output.rs - OtherStruct (line 27)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:326:13
15+
thread '$DIR/failed-doctest-output.rs - OtherStruct (line 27)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:361:13
1716
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
1817

1918
---- $DIR/failed-doctest-output.rs - SomeStruct (line 11) stdout ----
@@ -22,7 +21,7 @@ thread '$DIR/failed-doctest-output.rs - SomeStruct (line 11)' panicked at 'test
2221
thread 'main' panicked at 'oh no', $DIR/failed-doctest-output.rs:3:1
2322
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
2423

25-
', src/librustdoc/test.rs:395:17
24+
', src/librustdoc/test.rs:396:17
2625

2726

2827
failures:

0 commit comments

Comments
 (0)