Skip to content

Commit a7cd7bb

Browse files
committed
Remove #[macro_use] extern crate tracing from rustc_interface.
1 parent 7252923 commit a7cd7bb

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

compiler/rustc_interface/src/interface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use rustc_data_structures::sync::Lrc;
1111
use rustc_errors::registry::Registry;
1212
use rustc_errors::{DiagCtxt, ErrorGuaranteed};
1313
use rustc_lint::LintStore;
14-
1514
use rustc_middle::ty;
1615
use rustc_middle::ty::CurrentGcx;
1716
use rustc_middle::util::Providers;
@@ -28,6 +27,7 @@ use rustc_span::FileName;
2827
use std::path::PathBuf;
2928
use std::result;
3029
use std::sync::Arc;
30+
use tracing::trace;
3131

3232
pub type Result<T> = result::Result<T, ErrorGuaranteed>;
3333

compiler/rustc_interface/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
#![feature(thread_spawn_unchecked)]
55
#![feature(try_blocks)]
66

7-
#[macro_use]
8-
extern crate tracing;
9-
107
mod callbacks;
118
mod errors;
129
pub mod interface;

compiler/rustc_interface/src/passes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ use std::io::{self, BufWriter, Write};
3939
use std::path::{Path, PathBuf};
4040
use std::sync::LazyLock;
4141
use std::{env, fs, iter};
42+
use tracing::{info, instrument};
4243

4344
pub fn parse<'a>(sess: &'a Session) -> PResult<'a, ast::Crate> {
4445
let krate = sess.time("parse_crate", || match &sess.io.input {

compiler/rustc_interface/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use crate::errors;
2-
use info;
32
use rustc_ast as ast;
43
use rustc_codegen_ssa::traits::CodegenBackend;
54
#[cfg(parallel_compiler)]
@@ -23,6 +22,7 @@ use std::sync::atomic::{AtomicBool, Ordering};
2322
use std::sync::OnceLock;
2423
use std::thread;
2524
use std::{env, iter};
25+
use tracing::info;
2626

2727
/// Function pointer type that constructs a new CodegenBackend.
2828
pub type MakeBackendFn = fn() -> Box<dyn CodegenBackend>;

0 commit comments

Comments
 (0)