mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Add library_search_path
to Rustdoc
This commit is contained in:
parent
eea00ca354
commit
4057a7b1e3
@ -143,6 +143,14 @@ impl Rustdoc {
|
||||
self
|
||||
}
|
||||
|
||||
/// Add a directory to the library search path. It corresponds to the `-L`
|
||||
/// rustdoc option.
|
||||
pub fn library_search_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
|
||||
self.cmd.arg("-L");
|
||||
self.cmd.arg(path.as_ref());
|
||||
self
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
|
||||
let caller_location = std::panic::Location::caller();
|
||||
|
Loading…
Reference in New Issue
Block a user