Skip to content

Commit e60c191

Browse files
committed
Remove #[macro_use] extern crate tracing from rustc_span`.
Because explicit macro imports are better than implicit macro imports.
1 parent 220f3ab commit e60c191

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_span/src/hygiene.rs

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ use std::cell::RefCell;
4040
use std::collections::hash_map::Entry;
4141
use std::fmt;
4242
use std::hash::Hash;
43+
use tracing::{debug, trace};
4344

4445
/// A `SyntaxContext` represents a chain of pairs `(ExpnId, Transparency)` named "marks".
4546
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]

compiler/rustc_span/src/lib.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@
3838
// this crate without this line making `rustc_span` available.
3939
extern crate self as rustc_span;
4040

41-
#[macro_use]
42-
extern crate tracing;
43-
4441
use rustc_data_structures::{outline, AtomicRef};
4542
use rustc_macros::{Decodable, Encodable, HashStable_Generic};
4643
use rustc_serialize::opaque::{FileEncoder, MemDecoder};
4744
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
45+
use tracing::debug;
4846

4947
mod caching_source_map_view;
5048
pub mod source_map;

compiler/rustc_span/src/source_map.rs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use rustc_macros::{Decodable, Encodable};
1616
use std::fs;
1717
use std::io::{self, BorrowedBuf, Read};
1818
use std::path;
19+
use tracing::{debug, instrument, trace};
1920

2021
#[cfg(test)]
2122
mod tests;

0 commit comments

Comments
 (0)