Skip to content

Commit b515de8

Browse files
Migrate run-make/rustdoc-target-spec-json-path to rmake
1 parent 4057a7b commit b515de8

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

Diff for: src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ run-make/rustdoc-scrape-examples-multiple/Makefile
251251
run-make/rustdoc-scrape-examples-remap/Makefile
252252
run-make/rustdoc-scrape-examples-test/Makefile
253253
run-make/rustdoc-scrape-examples-whitespace/Makefile
254-
run-make/rustdoc-target-spec-json-path/Makefile
255254
run-make/rustdoc-themes/Makefile
256255
run-make/rustdoc-verify-output-files/Makefile
257256
run-make/rustdoc-with-out-dir-option/Makefile

Diff for: tests/run-make/rustdoc-target-spec-json-path/Makefile

-9
This file was deleted.
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Test that rustdoc will properly canonicalize the target spec json path just like rustc.
2+
3+
use run_make_support::{rustc, rustdoc, tmp_dir};
4+
5+
fn main() {
6+
let out_dir = tmp_dir().join("rustdoc-target-spec-json-path");
7+
rustc().crate_type("lib").input("dummy_core.rs").target("target.json").run();
8+
rustdoc()
9+
.input("my_crate.rs")
10+
.output(out_dir)
11+
.library_search_path(tmp_dir())
12+
.target("target.json")
13+
.run();
14+
}

0 commit comments

Comments
 (0)