diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-10-20 19:49:08 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-10-20 21:44:51 +0200 |
| commit | f38250403c8c52a0bf7cbedccaee71a103fec839 (patch) | |
| tree | ec22075c470746356ae940907dd66e1b468cd2bb | |
| parent | 98e16884b10630e6e6ef5f4a076af3409122401d (diff) | |
| download | rust-f38250403c8c52a0bf7cbedccaee71a103fec839.tar.gz rust-f38250403c8c52a0bf7cbedccaee71a103fec839.zip | |
Remove unused type from librustdoc
| -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); |
