]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #75041 - pawanbisht62:feature/replace-log-with-tracing, r=oli-obk
authorYuki Okushi <huyuumi.dev@gmail.com>
Sun, 2 Aug 2020 16:05:23 +0000 (01:05 +0900)
committerGitHub <noreply@github.com>
Sun, 2 Aug 2020 16:05:23 +0000 (01:05 +0900)
Replaced log with tracing crate

Issue #74747

src/librustc_ast_lowering/Cargo.toml
src/librustc_ast_lowering/item.rs
src/librustc_ast_lowering/lib.rs
src/librustc_ast_lowering/path.rs
src/librustc_ast_passes/Cargo.toml
src/librustc_ast_passes/feature_gate.rs
src/librustc_ast_pretty/Cargo.toml
src/librustc_ast_pretty/pp.rs

index 51f34a1b78e97753565327d42c69569aeb55982d..bf7e69a31abcba446d7238ff3e7c310ef7941332 100644 (file)
@@ -11,7 +11,7 @@ doctest = false
 
 [dependencies]
 rustc_arena = { path = "../librustc_arena" }
-log = { package = "tracing", version = "0.1" }
+tracing = "0.1"
 rustc_ast_pretty = { path = "../librustc_ast_pretty" }
 rustc_hir = { path = "../librustc_hir" }
 rustc_target = { path = "../librustc_target" }
index dd5e658102facacbe5688df07b9427c7961a5c03..5414e5842904726f8d5a32746425d56236553789 100644 (file)
@@ -17,9 +17,9 @@
 use rustc_span::Span;
 use rustc_target::spec::abi;
 
-use log::debug;
 use smallvec::{smallvec, SmallVec};
 use std::collections::BTreeSet;
+use tracing::debug;
 
 pub(super) struct ItemLowerer<'a, 'lowering, 'hir> {
     pub(super) lctx: &'a mut LoweringContext<'lowering, 'hir>,
index 1c70eef3bf5e32259b5387ab81c510498818792a..9df7ad2a9acf47d22e2c72c948a6b0c4ce4254bd 100644 (file)
 use rustc_span::symbol::{kw, sym, Ident, Symbol};
 use rustc_span::Span;
 
-use log::{debug, trace};
 use smallvec::{smallvec, SmallVec};
 use std::collections::BTreeMap;
 use std::mem;
+use tracing::{debug, trace};
 
 macro_rules! arena_vec {
     ($this:expr; $($x:expr),*) => ({
index e5ce51f8d2d1f45152badd12dc5915d52fefd8dc..2541d6824fec4e66331ca93d7915dc347b3a59c3 100644 (file)
@@ -12,8 +12,8 @@
 use rustc_span::symbol::Ident;
 use rustc_span::Span;
 
-use log::debug;
 use smallvec::smallvec;
+use tracing::debug;
 
 impl<'a, 'hir> LoweringContext<'a, 'hir> {
     crate fn lower_qpath(
index c53089a4afc5c03ab1dc969a8e1173bf0a0acf6f..6db9bce3164bb120579594334a151b12f55d220d 100644 (file)
@@ -10,7 +10,7 @@ path = "lib.rs"
 
 [dependencies]
 itertools = "0.8"
-log = { package = "tracing", version = "0.1" }
+tracing = "0.1"
 rustc_ast_pretty = { path = "../librustc_ast_pretty" }
 rustc_attr = { path = "../librustc_attr" }
 rustc_data_structures = { path = "../librustc_data_structures" }
index b424c8afb34717121efaf16fbbe025e3c33bb6c5..2fe208c3ce68caf5cb02d2f0aef4466496ec827f 100644 (file)
@@ -10,7 +10,7 @@
 use rustc_span::symbol::{sym, Symbol};
 use rustc_span::Span;
 
-use log::debug;
+use tracing::debug;
 
 macro_rules! gate_feature_fn {
     ($cx: expr, $has_feature: expr, $span: expr, $name: expr, $explain: expr) => {{
index 4035346d35446aa916c2146780821781e9c1013b..d26205c791dc0f67c70d366de2c43ee301de57c5 100644 (file)
@@ -10,7 +10,7 @@ path = "lib.rs"
 doctest = false
 
 [dependencies]
-log = { package = "tracing", version = "0.1" }
+tracing = "0.1"
 rustc_span = { path = "../librustc_span" }
 rustc_ast = { path = "../librustc_ast" }
 rustc_target = { path = "../librustc_target" }
index 4bb806a923e6cd7c6f2707a35f91ff39ef935271..ca7f127ced60d4c5111e24ee4ce8b3b2ea7f719b 100644 (file)
 //! methods called `Printer::scan_*`, and the 'PRINT' process is the
 //! method called `Printer::print`.
 
-use log::debug;
 use std::borrow::Cow;
 use std::collections::VecDeque;
 use std::fmt;
+use tracing::debug;
 
 /// How to break. Described in more detail in the module docs.
 #[derive(Clone, Copy, PartialEq)]