Skip to content

Commit 2426582

Browse files
authored
Rollup merge of #106151 - TaKO8Ki:remove-unused-imports, r=jackh726
Remove unused imports
2 parents 731e0bf + a8f468f commit 2426582

File tree

6 files changed

+2
-6
lines changed

6 files changed

+2
-6
lines changed

compiler/rustc_hir_analysis/src/impl_wf_check/min_specialization.rs

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ use rustc_span::Span;
8181
use rustc_trait_selection::traits::error_reporting::TypeErrCtxtExt;
8282
use rustc_trait_selection::traits::outlives_bounds::InferCtxtExt as _;
8383
use rustc_trait_selection::traits::{self, translate_substs, wf, ObligationCtxt};
84-
use tracing::instrument;
8584

8685
pub(super) fn check_min_specialization(tcx: TyCtxt<'_>, impl_def_id: LocalDefId) {
8786
if let Some(node) = parent_specialization_node(tcx, impl_def_id) {

compiler/rustc_middle/src/mir/terminator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use smallvec::{smallvec, SmallVec};
1+
use smallvec::SmallVec;
22

33
use super::{BasicBlock, InlineAsmOperand, Operand, SourceInfo, TerminatorKind};
44
use rustc_ast::InlineAsmTemplatePiece;

compiler/rustc_middle/src/ty/walk.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use crate::ty::subst::{GenericArg, GenericArgKind};
55
use crate::ty::{self, Ty};
66
use rustc_data_structures::sso::SsoHashSet;
7-
use smallvec::{self, SmallVec};
7+
use smallvec::SmallVec;
88

99
// The TypeWalker's stack is hot enough that it's worth going to some effort to
1010
// avoid heap allocations.

compiler/rustc_parse/src/parser/diagnostics.rs

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ use rustc_span::{Span, SpanSnippetError, DUMMY_SP};
4141
use std::mem::take;
4242
use std::ops::{Deref, DerefMut};
4343
use thin_vec::{thin_vec, ThinVec};
44-
use tracing::{debug, trace};
4544

4645
/// Creates a placeholder argument.
4746
pub(super) fn dummy_arg(ident: Ident) -> Param {

compiler/rustc_parse/src/parser/item.rs

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use rustc_span::symbol::{kw, sym, Ident, Symbol};
2424
use rustc_span::DUMMY_SP;
2525
use std::mem;
2626
use thin_vec::ThinVec;
27-
use tracing::debug;
2827

2928
impl<'a> Parser<'a> {
3029
/// Parses a source module as a crate. This is the main entry point for the parser.

compiler/rustc_trait_selection/src/traits/util.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use rustc_errors::Diagnostic;
22
use rustc_span::Span;
3-
use smallvec::smallvec;
43
use smallvec::SmallVec;
54

65
use rustc_data_structures::fx::FxHashSet;

0 commit comments

Comments
 (0)