mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
Add Rustdoc::current_dir
method to run-make-support
This commit is contained in:
parent
d6d3b342e8
commit
cc29dfa785
@ -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
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user