diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-06 13:35:41 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-08 12:52:31 +1000 |
| commit | 55b6ff8e41739404b0a6fb23e7f8fbff615a900d (patch) | |
| tree | 2b32262464e0e5609ef6cd8521cb81bf4b7f8846 /compiler/rustc_data_structures/src/graph | |
| parent | 351c0fa2a33baa3406a0c00034ff5e2cdac6fd7f (diff) | |
| download | rust-55b6ff8e41739404b0a6fb23e7f8fbff615a900d.tar.gz rust-55b6ff8e41739404b0a6fb23e7f8fbff615a900d.zip | |
Remove `extern crate tracing`.
`use` is a nicer way of doing things.
Diffstat (limited to 'compiler/rustc_data_structures/src/graph')
3 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/graph/implementation/mod.rs b/compiler/rustc_data_structures/src/graph/implementation/mod.rs index 3910c6fa46d..8cf4b4153db 100644 --- a/compiler/rustc_data_structures/src/graph/implementation/mod.rs +++ b/compiler/rustc_data_structures/src/graph/implementation/mod.rs @@ -22,6 +22,7 @@ use rustc_index::bit_set::BitSet; use std::fmt::Debug; +use tracing::debug; #[cfg(test)] mod tests; diff --git a/compiler/rustc_data_structures/src/graph/implementation/tests.rs b/compiler/rustc_data_structures/src/graph/implementation/tests.rs index 3ae5f5868f0..b4dbd65db94 100644 --- a/compiler/rustc_data_structures/src/graph/implementation/tests.rs +++ b/compiler/rustc_data_structures/src/graph/implementation/tests.rs @@ -1,4 +1,5 @@ use crate::graph::implementation::*; +use tracing::debug; type TestGraph = Graph<&'static str, &'static str>; diff --git a/compiler/rustc_data_structures/src/graph/scc/mod.rs b/compiler/rustc_data_structures/src/graph/scc/mod.rs index 5021e5e8fc0..914a6a16348 100644 --- a/compiler/rustc_data_structures/src/graph/scc/mod.rs +++ b/compiler/rustc_data_structures/src/graph/scc/mod.rs @@ -10,6 +10,7 @@ use crate::graph::vec_graph::VecGraph; use crate::graph::{DirectedGraph, NumEdges, Successors}; use rustc_index::{Idx, IndexSlice, IndexVec}; use std::ops::Range; +use tracing::{debug, instrument}; #[cfg(test)] mod tests; |
