Skip to content

Commit e728848

Browse files
authored
Rollup merge of #75041 - pawanbisht62:feature/replace-log-with-tracing, r=oli-obk
Replaced log with tracing crate Issue #74747
2 parents 21ebf69 + fee58eb commit e728848

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/librustc_ast_lowering/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ doctest = false
1111

1212
[dependencies]
1313
rustc_arena = { path = "../librustc_arena" }
14-
log = { package = "tracing", version = "0.1" }
14+
tracing = "0.1"
1515
rustc_ast_pretty = { path = "../librustc_ast_pretty" }
1616
rustc_hir = { path = "../librustc_hir" }
1717
rustc_target = { path = "../librustc_target" }

src/librustc_ast_lowering/item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ use rustc_span::symbol::{kw, sym, Ident};
1717
use rustc_span::Span;
1818
use rustc_target::spec::abi;
1919

20-
use log::debug;
2120
use smallvec::{smallvec, SmallVec};
2221
use std::collections::BTreeSet;
22+
use tracing::debug;
2323

2424
pub(super) struct ItemLowerer<'a, 'lowering, 'hir> {
2525
pub(super) lctx: &'a mut LoweringContext<'lowering, 'hir>,

src/librustc_ast_lowering/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ use rustc_span::source_map::{respan, DesugaringKind, ExpnData, ExpnKind};
6464
use rustc_span::symbol::{kw, sym, Ident, Symbol};
6565
use rustc_span::Span;
6666

67-
use log::{debug, trace};
6867
use smallvec::{smallvec, SmallVec};
6968
use std::collections::BTreeMap;
7069
use std::mem;
70+
use tracing::{debug, trace};
7171

7272
macro_rules! arena_vec {
7373
($this:expr; $($x:expr),*) => ({

src/librustc_ast_lowering/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use rustc_session::lint::BuiltinLintDiagnostics;
1212
use rustc_span::symbol::Ident;
1313
use rustc_span::Span;
1414

15-
use log::debug;
1615
use smallvec::smallvec;
16+
use tracing::debug;
1717

1818
impl<'a, 'hir> LoweringContext<'a, 'hir> {
1919
crate fn lower_qpath(

src/librustc_ast_passes/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ path = "lib.rs"
1010

1111
[dependencies]
1212
itertools = "0.8"
13-
log = { package = "tracing", version = "0.1" }
13+
tracing = "0.1"
1414
rustc_ast_pretty = { path = "../librustc_ast_pretty" }
1515
rustc_attr = { path = "../librustc_attr" }
1616
rustc_data_structures = { path = "../librustc_data_structures" }

src/librustc_ast_passes/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use rustc_span::source_map::Spanned;
1010
use rustc_span::symbol::{sym, Symbol};
1111
use rustc_span::Span;
1212

13-
use log::debug;
13+
use tracing::debug;
1414

1515
macro_rules! gate_feature_fn {
1616
($cx: expr, $has_feature: expr, $span: expr, $name: expr, $explain: expr) => {{

src/librustc_ast_pretty/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ path = "lib.rs"
1010
doctest = false
1111

1212
[dependencies]
13-
log = { package = "tracing", version = "0.1" }
13+
tracing = "0.1"
1414
rustc_span = { path = "../librustc_span" }
1515
rustc_ast = { path = "../librustc_ast" }
1616
rustc_target = { path = "../librustc_target" }

src/librustc_ast_pretty/pp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@
132132
//! methods called `Printer::scan_*`, and the 'PRINT' process is the
133133
//! method called `Printer::print`.
134134
135-
use log::debug;
136135
use std::borrow::Cow;
137136
use std::collections::VecDeque;
138137
use std::fmt;
138+
use tracing::debug;
139139

140140
/// How to break. Described in more detail in the module docs.
141141
#[derive(Clone, Copy, PartialEq)]

0 commit comments

Comments
 (0)