We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Rustdoc::current_dir
1 parent 79734f1 commit 5d6149cCopy full SHA for 5d6149c
src/tools/run-make-support/src/rustdoc.rs
@@ -62,6 +62,12 @@ impl Rustdoc {
62
self
63
}
64
65
+ /// Set the path where the command will be run.
66
+ pub fn current_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
67
+ self.cmd.current_dir(path);
68
+ self
69
+ }
70
+
71
#[track_caller]
72
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
73
let caller_location = std::panic::Location::caller();
0 commit comments