remove redundant imports
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
This commit is contained in:
parent
8cd8d31369
commit
40ae34194c
283 changed files with 140 additions and 510 deletions
|
@ -1,11 +1,8 @@
|
|||
use super::*;
|
||||
|
||||
use crate::json::JsonEmitter;
|
||||
use rustc_span::source_map::{FilePathMapping, SourceMap};
|
||||
|
||||
use crate::emitter::{ColorConfig, HumanReadableErrorType};
|
||||
use crate::{Handler, TerminalUrl};
|
||||
use rustc_span::{BytePos, Span};
|
||||
use crate::emitter::ColorConfig;
|
||||
use crate::Handler;
|
||||
use rustc_span::BytePos;
|
||||
|
||||
use std::str;
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ use std::path::PathBuf;
|
|||
use termcolor::{BufferWriter, ColorChoice};
|
||||
|
||||
use super::*;
|
||||
use crate::markdown::MdStream;
|
||||
|
||||
const INPUT: &str = include_str!("input.md");
|
||||
const OUTPUT_PATH: &[&str] = &[env!("CARGO_MANIFEST_DIR"), "src","markdown","tests","output.stdout"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue