From cc29dfa785495e91bfd0f8e12fb3be229b06ebe6 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 3 May 2024 15:12:37 +0200 Subject: Add `Rustdoc::current_dir` method to run-make-support --- src/tools/run-make-support/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tools') diff --git a/src/tools/run-make-support/src/lib.rs b/src/tools/run-make-support/src/lib.rs index 239f90b23c9..d040b05f20e 100644 --- a/src/tools/run-make-support/src/lib.rs +++ b/src/tools/run-make-support/src/lib.rs @@ -261,6 +261,12 @@ macro_rules! impl_common_helpers { } output } + + /// Set the path where the command will be run. + pub fn current_dir>(&mut self, path: P) -> &mut Self { + self.cmd.current_dir(path); + self + } } }; } -- cgit 1.4.1-3-g733a5