diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-10-20 21:46:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 21:46:43 +0200 |
commit | 1df5346bf2d17e13b02514398f6bd729a37c7f87 (patch) | |
tree | 9e92112bbc2a82a2ab40b39833bd74aa22c208ba | |
parent | 0c2dbb2a1897065cc0ff662fa787ce81a6a82de9 (diff) | |
parent | f38250403c8c52a0bf7cbedccaee71a103fec839 (diff) | |
download | rust-1df5346bf2d17e13b02514398f6bd729a37c7f87.tar.gz |
Rollup merge of #78157 - GuillaumeGomez:remove-unused-type, r=jyn514
Remove unused type from librustdoc
r? @jyn514
-rw-r--r-- | src/librustdoc/lib.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index 12726d2bd9a..616f0efcd75 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -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); |