Rollup merge of #124888 - GuillaumeGomez:migrate-rustdoc-output-path, r=jieyouxu
Migrate `run-make/rustdoc-output-path` to rmake Part of https://github.com/rust-lang/rust/issues/121876. r? ``@jieyouxu``
This commit is contained in:
commit
aa68901e36
@ -245,7 +245,6 @@ run-make/rlib-format-packed-bundled-libs/Makefile
|
||||
run-make/rmeta-preferred/Makefile
|
||||
run-make/rustc-macro-dep-files/Makefile
|
||||
run-make/rustdoc-io-error/Makefile
|
||||
run-make/rustdoc-output-path/Makefile
|
||||
run-make/rustdoc-scrape-examples-invalid-expr/Makefile
|
||||
run-make/rustdoc-scrape-examples-macros/Makefile
|
||||
run-make/rustdoc-scrape-examples-multiple/Makefile
|
||||
|
@ -1,4 +0,0 @@
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTDOC) -o "$(TMPDIR)/foo/bar/doc" foo.rs
|
9
tests/run-make/rustdoc-output-path/rmake.rs
Normal file
9
tests/run-make/rustdoc-output-path/rmake.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// Checks that if the output folder doesn't exist, rustdoc will create it.
|
||||
|
||||
use run_make_support::{rustdoc, tmp_dir};
|
||||
|
||||
fn main() {
|
||||
let out_dir = tmp_dir().join("foo/bar/doc");
|
||||
rustdoc().input("foo.rs").output(&out_dir).run();
|
||||
assert!(out_dir.exists());
|
||||
}
|
Loading…
Reference in New Issue
Block a user