Skip to content

Commit d787fb0

Browse files
committed
Remove #[macro_use] extern crate tracing from rustc_metadata.
1 parent 70e964a commit d787fb0

File tree

7 files changed

+6
-3
lines changed

7 files changed

+6
-3
lines changed

compiler/rustc_metadata/src/creader.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ use rustc_span::edition::Edition;
2727
use rustc_span::symbol::{sym, Symbol};
2828
use rustc_span::{Span, DUMMY_SP};
2929
use rustc_target::spec::{PanicStrategy, Target, TargetTriple};
30+
use tracing::{debug, info, trace};
3031

3132
use proc_macro::bridge::client::ProcMacro;
3233
use std::error::Error;

compiler/rustc_metadata/src/dependency_format.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ use rustc_middle::ty::TyCtxt;
6565
use rustc_session::config::CrateType;
6666
use rustc_session::cstore::CrateDepKind;
6767
use rustc_session::cstore::LinkagePreference::{self, RequireDynamic, RequireStatic};
68+
use tracing::info;
6869

6970
pub(crate) fn calculate(tcx: TyCtxt<'_>) -> Dependencies {
7071
tcx.crate_types()

compiler/rustc_metadata/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020

2121
extern crate proc_macro;
2222

23-
#[macro_use]
24-
extern crate tracing;
25-
2623
pub use rmeta::provide;
2724

2825
mod dependency_format;

compiler/rustc_metadata/src/locator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ use rustc_session::Session;
231231
use rustc_span::symbol::Symbol;
232232
use rustc_span::Span;
233233
use rustc_target::spec::{Target, TargetTriple};
234+
use tracing::{debug, info};
234235

235236
use snap::read::FrameDecoder;
236237
use std::borrow::Cow;

compiler/rustc_metadata/src/rmeta/decoder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ use rustc_session::cstore::{CrateSource, ExternCrate};
2828
use rustc_session::Session;
2929
use rustc_span::symbol::kw;
3030
use rustc_span::{BytePos, Pos, SpanData, SpanDecoder, SyntaxContext, DUMMY_SP};
31+
use tracing::debug;
3132

3233
use proc_macro::bridge::client::ProcMacro;
3334
use std::iter::TrustedLen;

compiler/rustc_metadata/src/rmeta/encoder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ use std::collections::hash_map::Entry;
3333
use std::fs::File;
3434
use std::io::{Read, Seek, Write};
3535
use std::path::{Path, PathBuf};
36+
use tracing::{debug, instrument, trace};
3637

3738
pub(super) struct EncodeContext<'a, 'tcx> {
3839
opaque: opaque::FileEncoder,

compiler/rustc_metadata/src/rmeta/table.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use crate::rmeta::*;
22

33
use rustc_hir::def::CtorOf;
44
use rustc_index::Idx;
5+
use tracing::trace;
56

67
pub(super) trait IsDefault: Default {
78
fn is_default(&self) -> bool;

0 commit comments

Comments
 (0)