Rollup merge of #78157 - GuillaumeGomez:remove-unused-type, r=jyn514

Remove unused type from librustdoc

r? @jyn514
This commit is contained in:
Guillaume Gomez 2020-10-20 21:46:43 +02:00 committed by GitHub
commit 1df5346bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,12 +85,6 @@ mod theme;
mod visit_ast;
mod visit_lib;
struct Output {
krate: clean::Crate,
renderinfo: config::RenderInfo,
renderopts: config::RenderOptions,
}
pub fn main() {
rustc_driver::set_sigpipe_handler();
rustc_driver::install_ice_hook();
@ -521,15 +515,12 @@ fn main_options(options: config::Options) -> MainResult {
krate.version = crate_version;
let out = Output { krate, renderinfo, renderopts };
if show_coverage {
// if we ran coverage, bail early, we don't need to also generate docs at this point
// (also we didn't load in any of the useful passes)
return Ok(());
}
let Output { krate, renderinfo, renderopts } = out;
info!("going to format");
let (error_format, edition, debugging_options) = diag_opts;
let diag = core::new_handler(error_format, None, &debugging_options);