Skip to content

Commit 980edf5

Browse files
committed
Replace from log to tracing in libsrustrustc_ast_lowering, librustc_ast_passes, librustc_ast_pretty
1 parent e18b563 commit 980edf5

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,7 +17,7 @@ use rustc_span::symbol::{kw, sym, Ident};
1717
use rustc_span::Span;
1818
use rustc_target::spec::abi;
1919

20-
use log::debug;
20+
use tracing::debug;
2121
use smallvec::{smallvec, SmallVec};
2222
use std::collections::BTreeSet;
2323

src/librustc_ast_lowering/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ 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};
67+
use tracing::{debug, trace};
6868
use smallvec::{smallvec, SmallVec};
6969
use std::collections::BTreeMap;
7070
use std::mem;

src/librustc_ast_lowering/path.rs

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

15-
use log::debug;
15+
use tracing::debug;
1616
use smallvec::smallvec;
1717

1818
impl<'a, 'hir> LoweringContext<'a, 'hir> {

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,7 +132,7 @@
132132
//! methods called `Printer::scan_*`, and the 'PRINT' process is the
133133
//! method called `Printer::print`.
134134
135-
use log::debug;
135+
use tracing::debug;
136136
use std::borrow::Cow;
137137
use std::collections::VecDeque;
138138
use std::fmt;

0 commit comments

Comments
 (0)