]> git.lizzy.rs Git - rust.git/commitdiff
remove unused imports
authorTakayuki Maeda <takoyaki0316@gmail.com>
Mon, 26 Dec 2022 06:01:20 +0000 (15:01 +0900)
committerTakayuki Maeda <takoyaki0316@gmail.com>
Mon, 26 Dec 2022 06:01:20 +0000 (15:01 +0900)
compiler/rustc_hir_analysis/src/impl_wf_check/min_specialization.rs
compiler/rustc_middle/src/mir/terminator.rs
compiler/rustc_middle/src/ty/walk.rs
compiler/rustc_parse/src/parser/diagnostics.rs
compiler/rustc_parse/src/parser/item.rs
compiler/rustc_trait_selection/src/traits/util.rs

index fd8e8ed7ba605d4add40f3e6b81c30ffaad45f19..ef0ffd2ec51c9834a1e961274af10dc6d9b98d26 100644 (file)
@@ -81,7 +81,6 @@
 use rustc_trait_selection::traits::error_reporting::TypeErrCtxtExt;
 use rustc_trait_selection::traits::outlives_bounds::InferCtxtExt as _;
 use rustc_trait_selection::traits::{self, translate_substs, wf, ObligationCtxt};
-use tracing::instrument;
 
 pub(super) fn check_min_specialization(tcx: TyCtxt<'_>, impl_def_id: LocalDefId) {
     if let Some(node) = parent_specialization_node(tcx, impl_def_id) {
index 013a1bccd3bd1fd85af72a5a31db156e4e0c3416..438f36373ca91b0682484f1052eefd7ad1aa889a 100644 (file)
@@ -1,4 +1,4 @@
-use smallvec::{smallvec, SmallVec};
+use smallvec::SmallVec;
 
 use super::{BasicBlock, InlineAsmOperand, Operand, SourceInfo, TerminatorKind};
 use rustc_ast::InlineAsmTemplatePiece;
index 34dbb6e9f68ea1cf6fe295448322edf3f532cea9..708a5e4d059e8acdab8166081f1c6c4d54fee151 100644 (file)
@@ -4,7 +4,7 @@
 use crate::ty::subst::{GenericArg, GenericArgKind};
 use crate::ty::{self, Ty};
 use rustc_data_structures::sso::SsoHashSet;
-use smallvec::{self, SmallVec};
+use smallvec::SmallVec;
 
 // The TypeWalker's stack is hot enough that it's worth going to some effort to
 // avoid heap allocations.
index 0191ab730c812e89e55099c5896dc4be68284e38..61fe379c3e98b03dc19e579127c6162ff2d95604 100644 (file)
@@ -41,7 +41,6 @@
 use std::mem::take;
 use std::ops::{Deref, DerefMut};
 use thin_vec::{thin_vec, ThinVec};
-use tracing::{debug, trace};
 
 /// Creates a placeholder argument.
 pub(super) fn dummy_arg(ident: Ident) -> Param {
index 7c2d01509de417b100c281abf1a6863106d05ee0..9b8a6c47966d4c321b9a2d1e91ba6afca8e3c024 100644 (file)
@@ -24,7 +24,6 @@
 use rustc_span::DUMMY_SP;
 use std::mem;
 use thin_vec::ThinVec;
-use tracing::debug;
 
 impl<'a> Parser<'a> {
     /// Parses a source module as a crate. This is the main entry point for the parser.
index f3ca6a6c779a06b9ca34b584dde18fe5775f0516..b5df583e3f4cbb94d5fb2e38aa1b7cab2ffd1d0a 100644 (file)
@@ -1,6 +1,5 @@
 use rustc_errors::Diagnostic;
 use rustc_span::Span;
-use smallvec::smallvec;
 use smallvec::SmallVec;
 
 use rustc_data_structures::fx::FxHashSet;