From 9a3548c420941587608debee7f918819fabcd32b Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Sat, 14 Nov 2020 18:02:06 -0500 Subject: [PATCH] Fix warnings --- src/librustdoc/core.rs | 3 +-- src/librustdoc/lib.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs index 7d73f3f356b..413f5bdf521 100644 --- a/src/librustdoc/core.rs +++ b/src/librustdoc/core.rs @@ -36,8 +36,7 @@ use crate::config::{Options as RustdocOptions, RenderOptions}; use crate::config::{OutputFormat, RenderInfo}; use crate::passes::{self, Condition::*, ConditionalPass}; -crate use rustc_session::config::{CodegenOptions, DebuggingOptions, Input, Options}; -crate use rustc_session::search_paths::SearchPath; +crate use rustc_session::config::{DebuggingOptions, Input, Options}; crate type ExternalPaths = FxHashMap, clean::TypeKind)>; diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index 95347b2625d..725874ca0c5 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -85,7 +85,7 @@ mod theme; mod visit_ast; mod visit_lib; -crate fn main() { +pub fn main() { rustc_driver::set_sigpipe_handler(); rustc_driver::install_ice_hook(); rustc_driver::init_env_logger("RUSTDOC_LOG");