Remove extern crate tracing
.
`use` is a nicer way of doing things.
This commit is contained in:
parent
351c0fa2a3
commit
55b6ff8e41
7 changed files with 6 additions and 4 deletions
|
@ -2,6 +2,7 @@ use std::fs::{File, OpenOptions};
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::os::windows::prelude::*;
|
use std::os::windows::prelude::*;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
use windows::{
|
use windows::{
|
||||||
Win32::Foundation::{ERROR_INVALID_FUNCTION, HANDLE},
|
Win32::Foundation::{ERROR_INVALID_FUNCTION, HANDLE},
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
use rustc_index::bit_set::BitSet;
|
use rustc_index::bit_set::BitSet;
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
use crate::graph::implementation::*;
|
use crate::graph::implementation::*;
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
type TestGraph = Graph<&'static str, &'static str>;
|
type TestGraph = Graph<&'static str, &'static str>;
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ use crate::graph::vec_graph::VecGraph;
|
||||||
use crate::graph::{DirectedGraph, NumEdges, Successors};
|
use crate::graph::{DirectedGraph, NumEdges, Successors};
|
||||||
use rustc_index::{Idx, IndexSlice, IndexVec};
|
use rustc_index::{Idx, IndexSlice, IndexVec};
|
||||||
use std::ops::Range;
|
use std::ops::Range;
|
||||||
|
use tracing::{debug, instrument};
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
|
@ -42,9 +42,6 @@
|
||||||
#![feature(unwrap_infallible)]
|
#![feature(unwrap_infallible)]
|
||||||
// tidy-alphabetical-end
|
// tidy-alphabetical-end
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate tracing;
|
|
||||||
|
|
||||||
pub use atomic_ref::AtomicRef;
|
pub use atomic_ref::AtomicRef;
|
||||||
pub use ena::snapshot_vec;
|
pub use ena::snapshot_vec;
|
||||||
pub use ena::undo_log;
|
pub use ena::undo_log;
|
||||||
|
|
|
@ -70,12 +70,12 @@
|
||||||
//! aren't needed anymore.
|
//! aren't needed anymore.
|
||||||
|
|
||||||
use crate::fx::{FxHashMap, FxHashSet};
|
use crate::fx::{FxHashMap, FxHashSet};
|
||||||
|
|
||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::collections::hash_map::Entry;
|
use std::collections::hash_map::Entry;
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
use std::hash;
|
use std::hash;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
|
use tracing::debug;
|
||||||
|
|
||||||
mod graphviz;
|
mod graphviz;
|
||||||
|
|
||||||
|
|
|
@ -99,6 +99,7 @@ pub use measureme::EventId;
|
||||||
use measureme::{EventIdBuilder, Profiler, SerializableString, StringId};
|
use measureme::{EventIdBuilder, Profiler, SerializableString, StringId};
|
||||||
use parking_lot::RwLock;
|
use parking_lot::RwLock;
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
|
use tracing::warn;
|
||||||
|
|
||||||
bitflags::bitflags! {
|
bitflags::bitflags! {
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue