Skip to content

Commit c4bdd29

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

File tree

8 files changed

+7
-4
lines changed

8 files changed

+7
-4
lines changed

compiler/rustc_incremental/src/assert_dep_graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ use rustc_middle::ty::TyCtxt;
4949
use rustc_middle::{bug, span_bug};
5050
use rustc_span::symbol::{sym, Symbol};
5151
use rustc_span::Span;
52-
5352
use std::env;
5453
use std::fs::{self, File};
5554
use std::io::{BufWriter, Write};
55+
use tracing::debug;
5656

5757
#[allow(missing_docs)]
5858
pub fn assert_dep_graph(tcx: TyCtxt<'_>) {

compiler/rustc_incremental/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
#![feature(rustdoc_internals)]
77
#![allow(internal_features)]
88

9-
#[macro_use]
10-
extern crate tracing;
11-
129
mod assert_dep_graph;
1310
mod errors;
1411
mod persist;

compiler/rustc_incremental/src/persist/dirty_clean.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ use rustc_middle::ty::TyCtxt;
3333
use rustc_span::symbol::{sym, Symbol};
3434
use rustc_span::Span;
3535
use thin_vec::ThinVec;
36+
use tracing::debug;
3637

3738
const LOADED_FROM_DISK: Symbol = sym::loaded_from_disk;
3839
const EXCEPT: Symbol = sym::except;

compiler/rustc_incremental/src/persist/file_format.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use std::env;
1919
use std::fs;
2020
use std::io::{self, Read};
2121
use std::path::{Path, PathBuf};
22+
use tracing::debug;
2223

2324
/// The first few bytes of files generated by incremental compilation.
2425
const FILE_MAGIC: &[u8] = b"RSIC";

compiler/rustc_incremental/src/persist/fs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ use std::path::{Path, PathBuf};
125125
use std::time::{Duration, SystemTime, UNIX_EPOCH};
126126

127127
use rand::{thread_rng, RngCore};
128+
use tracing::debug;
128129

129130
#[cfg(test)]
130131
mod tests;

compiler/rustc_incremental/src/persist/load.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use rustc_session::Session;
1212
use rustc_span::ErrorGuaranteed;
1313
use std::path::{Path, PathBuf};
1414
use std::sync::Arc;
15+
use tracing::{debug, warn};
1516

1617
use super::data::*;
1718
use super::file_format;

compiler/rustc_incremental/src/persist/save.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use rustc_serialize::Encodable as RustcEncodable;
1111
use rustc_session::Session;
1212
use std::fs;
1313
use std::sync::Arc;
14+
use tracing::debug;
1415

1516
use super::data::*;
1617
use super::dirty_clean;

compiler/rustc_incremental/src/persist/work_product.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
1010
use rustc_session::Session;
1111
use std::fs as std_fs;
1212
use std::path::Path;
13+
use tracing::debug;
1314

1415
/// Copies a CGU work product to the incremental compilation directory, so next compilation can
1516
/// find and reuse it.

0 commit comments

Comments
 (0)