Skip to content

Commit 3f073c4

Browse files
committed
Try to fix a perf regression by updating log
Upgrade `log` to `0.4` in multiple crates.
1 parent 69f17d1 commit 3f073c4

File tree

24 files changed

+43
-43
lines changed

24 files changed

+43
-43
lines changed

src/Cargo.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/librustc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bitflags = "1.0"
1414
fmt_macros = { path = "../libfmt_macros" }
1515
graphviz = { path = "../libgraphviz" }
1616
jobserver = "0.1"
17-
log = "0.3"
17+
log = "0.4"
1818
rustc_apfloat = { path = "../librustc_apfloat" }
1919
rustc_back = { path = "../librustc_back" }
2020
rustc_const_math = { path = "../librustc_const_math" }

src/librustc/hir/map/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ pub fn map_crate<'hir>(sess: &::session::Session,
10681068
cmdline_args)
10691069
};
10701070

1071-
if log_enabled!(::log::LogLevel::Debug) {
1071+
if log_enabled!(::log::Level::Debug) {
10721072
// This only makes sense for ordered stores; note the
10731073
// enumerate to count the number of entries.
10741074
let (entries_less_1, _) = map.iter().filter(|&x| {

src/librustc_back/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["dylib"]
1111
[dependencies]
1212
syntax = { path = "../libsyntax" }
1313
serialize = { path = "../libserialize" }
14-
log = "0.3"
14+
log = "0.4"
1515
rand = "0.3"
1616

1717
[features]

src/librustc_borrowck/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ crate-type = ["dylib"]
1010
test = false
1111

1212
[dependencies]
13-
log = "0.3"
13+
log = "0.4"
1414
syntax = { path = "../libsyntax" }
1515
syntax_pos = { path = "../libsyntax_pos" }
1616
graphviz = { path = "../libgraphviz" }

src/librustc_const_eval/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ crate-type = ["dylib"]
1010

1111
[dependencies]
1212
arena = { path = "../libarena" }
13-
log = "0.3"
13+
log = "0.4"
1414
rustc = { path = "../librustc" }
1515
rustc_const_math = { path = "../librustc_const_math" }
1616
rustc_data_structures = { path = "../librustc_data_structures" }

src/librustc_data_structures/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ path = "lib.rs"
99
crate-type = ["dylib"]
1010

1111
[dependencies]
12-
log = "0.3"
12+
log = "0.4"
1313
serialize = { path = "../libserialize" }
1414
cfg-if = "0.1.2"
1515
stable_deref_trait = "1.0.0"
1616
parking_lot_core = "0.2.8"
1717

1818
[dependencies.parking_lot]
1919
version = "0.5"
20-
features = ["nightly"]
20+
features = ["nightly"]

src/librustc_driver/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["dylib"]
1111
[dependencies]
1212
arena = { path = "../libarena" }
1313
graphviz = { path = "../libgraphviz" }
14-
log = { version = "0.3", features = ["release_max_level_info"] }
14+
log = { version = "0.4", features = ["release_max_level_info"] }
1515
env_logger = { version = "0.4", default-features = false }
1616
rustc = { path = "../librustc" }
1717
rustc_allocator = { path = "../librustc_allocator" }

src/librustc_driver/driver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,14 @@ pub fn compile_input(sess: &Session,
253253

254254
result?;
255255

256-
if log_enabled!(::log::LogLevel::Info) {
256+
if log_enabled!(::log::Level::Info) {
257257
println!("Pre-trans");
258258
tcx.print_debug_stats();
259259
}
260260

261261
let trans = phase_4_translate_to_llvm::<DefaultTransCrate>(tcx, rx);
262262

263-
if log_enabled!(::log::LogLevel::Info) {
263+
if log_enabled!(::log::Level::Info) {
264264
println!("Post-trans");
265265
tcx.print_debug_stats();
266266
}

src/librustc_incremental/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ crate-type = ["dylib"]
1010

1111
[dependencies]
1212
graphviz = { path = "../libgraphviz" }
13-
log = "0.3"
13+
log = "0.4"
1414
rand = "0.3"
1515
rustc = { path = "../librustc" }
1616
rustc_data_structures = { path = "../librustc_data_structures" }

0 commit comments

Comments
 (0)