diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-05-03 15:12:37 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-05-03 21:27:13 +0200 |
| commit | cc29dfa785495e91bfd0f8e12fb3be229b06ebe6 (patch) | |
| tree | 60a315fa7fbb8a0842c62e006e7542509bd52494 /src/tools | |
| parent | d6d3b342e85272f5e75c0d7a1dd3a1d8becb40ac (diff) | |
| download | rust-cc29dfa785495e91bfd0f8e12fb3be229b06ebe6.tar.gz rust-cc29dfa785495e91bfd0f8e12fb3be229b06ebe6.zip | |
Add `Rustdoc::current_dir` method to run-make-support
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/run-make-support/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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<P: AsRef<Path>>(&mut self, path: P) -> &mut Self { + self.cmd.current_dir(path); + self + } } }; } |
