about summary refs log tree commit diff
path: root/src/librustc_builtin_macros
diff options
context:
space:
mode:
authorbishtpawan <pawan.bisht@knoldus.com>2020-08-05 17:05:53 +0530
committerbishtpawan <pawan.bisht@knoldus.com>2020-08-06 16:56:56 +0530
commitfdfbd89946ca34d12eec658d111ce9a85cd23df0 (patch)
tree0b70679788c0ecc7f0b01aba15a0ebfc76057392 /src/librustc_builtin_macros
parente18b56345f06c12be4dba9b5d76f306cdf0ab7f9 (diff)
downloadrust-fdfbd89946ca34d12eec658d111ce9a85cd23df0.tar.gz
rust-fdfbd89946ca34d12eec658d111ce9a85cd23df0.zip
Incorporate tracing crate
Diffstat (limited to 'src/librustc_builtin_macros')
-rw-r--r--src/librustc_builtin_macros/Cargo.toml2
-rw-r--r--src/librustc_builtin_macros/test.rs2
-rw-r--r--src/librustc_builtin_macros/test_harness.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_builtin_macros/Cargo.toml b/src/librustc_builtin_macros/Cargo.toml
index c612781153e..dee6fed317e 100644
--- a/src/librustc_builtin_macros/Cargo.toml
+++ b/src/librustc_builtin_macros/Cargo.toml
@@ -11,7 +11,7 @@ doctest = false
 
 [dependencies]
 rustc_parse_format = { path = "../librustc_parse_format" }
-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" }
diff --git a/src/librustc_builtin_macros/test.rs b/src/librustc_builtin_macros/test.rs
index 460f947a792..26d627e6b30 100644
--- a/src/librustc_builtin_macros/test.rs
+++ b/src/librustc_builtin_macros/test.rs
@@ -292,7 +292,7 @@ pub fn expand_test_or_bench(
     // extern crate test
     let test_extern = cx.item(sp, test_id, vec![], ast::ItemKind::ExternCrate(None));
 
-    log::debug!("synthetic test item:\n{}\n", pprust::item_to_string(&test_const));
+    tracing::debug!("synthetic test item:\n{}\n", pprust::item_to_string(&test_const));
 
     vec![
         // Access to libtest under a hygienic name
diff --git a/src/librustc_builtin_macros/test_harness.rs b/src/librustc_builtin_macros/test_harness.rs
index 98c5c6936d7..3f7128d605d 100644
--- a/src/librustc_builtin_macros/test_harness.rs
+++ b/src/librustc_builtin_macros/test_harness.rs
@@ -1,6 +1,5 @@
 // Code that generates a test runner to run all the tests in a crate
 
-use log::debug;
 use rustc_ast::ast;
 use rustc_ast::attr;
 use rustc_ast::entry::{self, EntryPointType};
@@ -16,6 +15,7 @@ use rustc_span::symbol::{sym, Ident, Symbol};
 use rustc_span::{Span, DUMMY_SP};
 use rustc_target::spec::PanicStrategy;
 use smallvec::{smallvec, SmallVec};
+use tracing::debug;
 
 use std::{iter, mem};