about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Drinck <fabian.drinck@rwth-aachen.de>2019-03-16 19:19:40 +0100
committerFabian Drinck <fabian.drinck@rwth-aachen.de>2019-03-30 22:37:02 +0100
commitfef3f5c88d660277c85909af36edd3e121a0d576 (patch)
tree5f5cba898e67d8eaa69faebd2161be1b2c63b1b2
parent8919894c513a8f8eadacd9555afee7a6d095665c (diff)
downloadrust-fef3f5c88d660277c85909af36edd3e121a0d576.tar.gz
rust-fef3f5c88d660277c85909af36edd3e121a0d576.zip
Remove redundant import
-rw-r--r--src/librustdoc/html/render.rs2
-rw-r--r--src/librustdoc/test.rs3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index 9220d2feed2..f7e8cdeaeca 100644
--- a/src/librustdoc/html/render.rs
+++ b/src/librustdoc/html/render.rs
@@ -1069,8 +1069,6 @@ themePicker.onblur = handleThemeButtonsBlur;
     }
 
     if cx.shared.include_sources {
-        use std::path::Component;
-
         let mut hierarchy = Hierarchy::new(OsString::new());
         for source in cx.shared.local_sources.iter()
                                              .filter_map(|p| p.0.strip_prefix(&cx.shared.src_root)
diff --git a/src/librustdoc/test.rs b/src/librustdoc/test.rs
index f1d4d8470b2..0bbc7c5c4b2 100644
--- a/src/librustdoc/test.rs
+++ b/src/librustdoc/test.rs
@@ -371,8 +371,7 @@ pub fn make_test(s: &str,
     // Uses libsyntax to parse the doctest and find if there's a main fn and the extern
     // crate already is included.
     let (already_has_main, already_has_extern_crate, found_macro) = crate::syntax::with_globals(|| {
-        use crate::syntax::{ast, parse::{self, ParseSess}, source_map::FilePathMapping};
-        use crate::syntax_pos::FileName;
+        use crate::syntax::{parse::{self, ParseSess}, source_map::FilePathMapping};
         use errors::emitter::EmitterWriter;
         use errors::Handler;