Add `Rustdoc::output_format` · rust-lang/rust@f0ab814

File tree

1 file changed

lines changed

  • src/tools/run-make-support/src

1 file changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -151,6 +151,13 @@ impl Rustdoc {

151151

self

152152

}

153153
154+

/// Specify the output format.

155+

pub fn output_format(&mut self, format: &str) -> &mut Self {

156+

self.cmd.arg("--output-format");

157+

self.cmd.arg(format);

158+

self

159+

}

160+
154161

#[track_caller]

155162

pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {

156163

let caller_location = std::panic::Location::caller();