Remove extern crate tracing.

`use` is a nicer way of doing things.
This commit is contained in:
Nicholas Nethercote 2024-05-06 13:35:41 +10:00
parent 351c0fa2a3
commit 55b6ff8e41
7 changed files with 6 additions and 4 deletions

View file

@ -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},

View file

@ -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;

View file

@ -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>;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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)]