Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 458bfb4

Browse files
committedMay 5, 2024
Migrate run-make/rustdoc-error-lines to rmake.rs
1 parent 27e6741 commit 458bfb4

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed
 

‎src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ run-make/rlib-format-packed-bundled-libs-3/Makefile
244244
run-make/rlib-format-packed-bundled-libs/Makefile
245245
run-make/rmeta-preferred/Makefile
246246
run-make/rustc-macro-dep-files/Makefile
247-
run-make/rustdoc-error-lines/Makefile
248247
run-make/rustdoc-io-error/Makefile
249248
run-make/rustdoc-map-file/Makefile
250249
run-make/rustdoc-output-path/Makefile

‎tests/run-make/rustdoc-error-lines/Makefile

-13
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Assert that the search index is generated deterministically, regardless of the
2+
// order that crates are documented in.
3+
4+
use run_make_support::rustdoc;
5+
6+
fn main() {
7+
let output = String::from_utf8(rustdoc().input("input.rs").arg("--test").command_output().stdout).unwrap();
8+
9+
let should_contains = &[
10+
"input.rs - foo (line 5)",
11+
"input.rs:7:15",
12+
"input.rs - bar (line 15)",
13+
"input.rs:17:15",
14+
"input.rs - bar (line 24)",
15+
"input.rs:26:15",
16+
];
17+
for text in should_contains {
18+
assert!(output.contains(text), "output doesn't contains {:?}", text);
19+
}
20+
}

0 commit comments

Comments
 (0)
Failed to load comments.