Skip to content

Commit 70e964a

Browse files
committed
Remove #[macro_use] extern crate tracing from rustc_monomorphize.
1 parent 7a5d814 commit 70e964a

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

compiler/rustc_monomorphize/src/collector.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ use rustc_span::symbol::{sym, Ident};
236236
use rustc_span::{Span, DUMMY_SP};
237237
use rustc_target::abi::Size;
238238
use std::path::PathBuf;
239+
use tracing::{debug, instrument, trace};
239240

240241
use crate::errors::{
241242
self, EncounteredErrorWhileInstantiating, NoOptimizedMir, RecursionLimit, TypeLengthLimit,

compiler/rustc_monomorphize/src/collector/move_check.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use rustc_session::lint::builtin::LARGE_ASSIGNMENTS;
2+
use tracing::debug;
23

34
use super::*;
45
use crate::errors::LargeAssignmentsLint;

compiler/rustc_monomorphize/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
#![feature(is_sorted)]
33
#![allow(rustc::potential_query_instability)]
44

5-
#[macro_use]
6-
extern crate tracing;
7-
85
use rustc_hir::lang_items::LangItem;
96
use rustc_middle::bug;
107
use rustc_middle::query::{Providers, TyCtxtAt};

compiler/rustc_monomorphize/src/partitioning.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ use rustc_middle::ty::{self, visit::TypeVisitableExt, InstanceDef, TyCtxt};
116116
use rustc_session::config::{DumpMonoStatsFormat, SwitchWithOptPath};
117117
use rustc_session::CodegenUnits;
118118
use rustc_span::symbol::Symbol;
119+
use tracing::debug;
119120

120121
use crate::collector::UsageMap;
121122
use crate::collector::{self, MonoItemCollectionStrategy};

compiler/rustc_monomorphize/src/polymorphize.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use rustc_middle::ty::{
1818
GenericArgsRef, Ty, TyCtxt, UnusedGenericParams,
1919
};
2020
use rustc_span::symbol::sym;
21+
use tracing::{debug, instrument};
2122

2223
use crate::errors::UnusedGenericParamsHint;
2324

0 commit comments

Comments
 (0)