Skip to content

Commit 5d6149c

Browse files
Add Rustdoc::current_dir method to run-make-support
1 parent 79734f1 commit 5d6149c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tools/run-make-support/src/rustdoc.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ impl Rustdoc {
6262
self
6363
}
6464

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+
6571
#[track_caller]
6672
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
6773
let caller_location = std::panic::Location::caller();

0 commit comments

Comments
 (0)