Skip to content

Commit 7252923

Browse files
committed
Remove #[macro_use] extern crate tracing from rustc_passes.
1 parent 448fc75 commit 7252923

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

compiler/rustc_passes/src/check_attr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ use rustc_trait_selection::traits::error_reporting::TypeErrCtxtExt;
3939
use rustc_trait_selection::traits::ObligationCtxt;
4040
use std::cell::Cell;
4141
use std::collections::hash_map::Entry;
42+
use tracing::debug;
4243

4344
#[derive(LintDiagnostic)]
4445
#[diag(passes_diagnostic_diagnostic_on_unimplemented_only_for_traits)]

compiler/rustc_passes/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
#![feature(map_try_insert)]
1313
#![feature(try_blocks)]
1414

15-
#[macro_use]
16-
extern crate tracing;
17-
1815
use rustc_middle::query::Providers;
1916

2017
pub mod abi_test;

compiler/rustc_passes/src/liveness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ use rustc_middle::ty::{self, RootVariableMinCaptureList, Ty, TyCtxt};
9999
use rustc_session::lint;
100100
use rustc_span::symbol::{kw, sym, Symbol};
101101
use rustc_span::{BytePos, Span};
102-
103102
use std::io;
104103
use std::io::prelude::*;
105104
use std::rc::Rc;
105+
use tracing::{debug, instrument};
106106

107107
mod rwu_table;
108108

compiler/rustc_passes/src/reachable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ use rustc_middle::query::Providers;
3737
use rustc_middle::ty::{self, ExistentialTraitRef, TyCtxt};
3838
use rustc_privacy::DefIdVisitor;
3939
use rustc_session::config::CrateType;
40+
use tracing::debug;
4041

4142
/// Determines whether this item is recursive for reachability. See `is_recursively_reachable_local`
4243
/// below for details.

compiler/rustc_passes/src/stability.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ use rustc_session::lint::builtin::{INEFFECTIVE_UNSTABLE_TRAIT_IMPL, USELESS_DEPR
2525
use rustc_span::symbol::{sym, Symbol};
2626
use rustc_span::Span;
2727
use rustc_target::spec::abi::Abi;
28-
2928
use std::mem::replace;
3029
use std::num::NonZero;
30+
use tracing::{debug, info};
3131

3232
#[derive(PartialEq)]
3333
enum AnnotationKind {

0 commit comments

Comments
 (0)