Remove redundant import
This commit is contained in:
parent
8919894c51
commit
fef3f5c88d
2 changed files with 1 additions and 4 deletions
|
@ -1069,8 +1069,6 @@ themePicker.onblur = handleThemeButtonsBlur;
|
||||||
}
|
}
|
||||||
|
|
||||||
if cx.shared.include_sources {
|
if cx.shared.include_sources {
|
||||||
use std::path::Component;
|
|
||||||
|
|
||||||
let mut hierarchy = Hierarchy::new(OsString::new());
|
let mut hierarchy = Hierarchy::new(OsString::new());
|
||||||
for source in cx.shared.local_sources.iter()
|
for source in cx.shared.local_sources.iter()
|
||||||
.filter_map(|p| p.0.strip_prefix(&cx.shared.src_root)
|
.filter_map(|p| p.0.strip_prefix(&cx.shared.src_root)
|
||||||
|
|
|
@ -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
|
// Uses libsyntax to parse the doctest and find if there's a main fn and the extern
|
||||||
// crate already is included.
|
// crate already is included.
|
||||||
let (already_has_main, already_has_extern_crate, found_macro) = crate::syntax::with_globals(|| {
|
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::{parse::{self, ParseSess}, source_map::FilePathMapping};
|
||||||
use crate::syntax_pos::FileName;
|
|
||||||
use errors::emitter::EmitterWriter;
|
use errors::emitter::EmitterWriter;
|
||||||
use errors::Handler;
|
use errors::Handler;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue