Skip to content

Commit 55b6ff8

Browse files
committed
Remove extern crate tracing.
`use` is a nicer way of doing things.
1 parent 351c0fa commit 55b6ff8

File tree

7 files changed

+6
-4
lines changed

7 files changed

+6
-4
lines changed

compiler/rustc_data_structures/src/flock/windows.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use std::fs::{File, OpenOptions};
22
use std::io;
33
use std::os::windows::prelude::*;
44
use std::path::Path;
5+
use tracing::debug;
56

67
use windows::{
78
Win32::Foundation::{ERROR_INVALID_FUNCTION, HANDLE},

compiler/rustc_data_structures/src/graph/implementation/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
2323
use rustc_index::bit_set::BitSet;
2424
use std::fmt::Debug;
25+
use tracing::debug;
2526

2627
#[cfg(test)]
2728
mod tests;

compiler/rustc_data_structures/src/graph/implementation/tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use crate::graph::implementation::*;
2+
use tracing::debug;
23

34
type TestGraph = Graph<&'static str, &'static str>;
45

compiler/rustc_data_structures/src/graph/scc/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use crate::graph::vec_graph::VecGraph;
1010
use crate::graph::{DirectedGraph, NumEdges, Successors};
1111
use rustc_index::{Idx, IndexSlice, IndexVec};
1212
use std::ops::Range;
13+
use tracing::{debug, instrument};
1314

1415
#[cfg(test)]
1516
mod tests;

compiler/rustc_data_structures/src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
#![feature(unwrap_infallible)]
4343
// tidy-alphabetical-end
4444

45-
#[macro_use]
46-
extern crate tracing;
47-
4845
pub use atomic_ref::AtomicRef;
4946
pub use ena::snapshot_vec;
5047
pub use ena::undo_log;

compiler/rustc_data_structures/src/obligation_forest/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@
7070
//! aren't needed anymore.
7171
7272
use crate::fx::{FxHashMap, FxHashSet};
73-
7473
use std::cell::Cell;
7574
use std::collections::hash_map::Entry;
7675
use std::fmt::Debug;
7776
use std::hash;
7877
use std::marker::PhantomData;
78+
use tracing::debug;
7979

8080
mod graphviz;
8181

compiler/rustc_data_structures/src/profiling.rs

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ pub use measureme::EventId;
9999
use measureme::{EventIdBuilder, Profiler, SerializableString, StringId};
100100
use parking_lot::RwLock;
101101
use smallvec::SmallVec;
102+
use tracing::warn;
102103

103104
bitflags::bitflags! {
104105
#[derive(Clone, Copy)]

0 commit comments

Comments
 (0)