chore: cleanup unused imports

This commit is contained in:
Caleb Cartwright 2021-12-20 20:33:20 -06:00 committed by Caleb Cartwright
parent 97c3e48834
commit 7b8303d479
2 changed files with 8 additions and 13 deletions

View File

@ -1,16 +1,14 @@
use rustc_ast::token::{BinOpToken, DelimToken, Token, TokenKind};
use rustc_ast::tokenstream::{Cursor, Spacing, TokenStream, TokenTree};
use rustc_ast::token::{DelimToken, TokenKind};
use rustc_ast::tokenstream::TokenStream;
use rustc_ast::{ast, ptr};
use rustc_parse::parser::{ForceCollect, Parser};
use rustc_parse::{stream_to_parser, MACRO_ARGUMENTS};
use rustc_session::parse::ParseSess;
use rustc_span::{
symbol::{self, kw},
BytePos, Span, Symbol, DUMMY_SP,
};
use rustc_span::symbol::{self, kw};
use rustc_span::Symbol;
use crate::macros::MacroArg;
use crate::rewrite::{Rewrite, RewriteContext};
use crate::rewrite::RewriteContext;
pub(crate) mod cfg_if;
pub(crate) mod lazy_static;

View File

@ -1,14 +1,11 @@
use std::panic::{catch_unwind, AssertUnwindSafe};
use std::path::{Path, PathBuf};
use rustc_ast::token::{DelimToken, TokenKind};
use rustc_ast::token::TokenKind;
use rustc_ast::{ast, ptr};
use rustc_errors::Diagnostic;
use rustc_parse::{
new_parser_from_file,
parser::{ForceCollect, Parser as RawParser},
};
use rustc_span::{sym, symbol::kw, Span};
use rustc_parse::{new_parser_from_file, parser::Parser as RawParser};
use rustc_span::{sym, Span};
use crate::attr::first_attr_value_str_by_name;
use crate::parse::session::ParseSess;