More requested changes

This commit is contained in:
Joseph Ryan
2020-07-27 17:34:17 -05:00
parent 3d707a008e
commit cee8023c69
6 changed files with 64 additions and 84 deletions

View File

@@ -502,9 +502,9 @@ fn main_options(options: config::Options) -> i32 {
info!("going to format");
let (error_format, edition, debugging_options) = diag_opts;
let diag = core::new_handler(error_format, None, &debugging_options);
match formats::Renderer::new()
.run::<html::render::Context>(krate, renderopts, renderinfo, &diag, edition)
{
match formats::run_format::<html::render::Context>(
krate, renderopts, renderinfo, &diag, edition,
) {
Ok(_) => rustc_driver::EXIT_SUCCESS,
Err(e) => {
diag.struct_err(&format!("couldn't generate documentation: {}", e.error))