Skip to content

Commit ee220da

Browse files
committed
Auto merge of #47161 - MaloJaffre:compiler-docs-regression, r=alexcrichton
Try to fix a perf regression by updating log Upgrade `log` to `0.4` in multiple crates ~and `cargo`~. Cc: #47154.
2 parents 8724337 + 3f073c4 commit ee220da

File tree

24 files changed

+43
-43
lines changed

24 files changed

+43
-43
lines changed

src/Cargo.lock

+18-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/librustc/Cargo.toml

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+2-2
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

+1-1
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

+2-2
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

+1-1
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" }

src/librustc_lint/Cargo.toml

+1-1
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
rustc = { path = "../librustc" }
1515
rustc_const_eval = { path = "../librustc_const_eval" }
1616
syntax = { path = "../libsyntax" }

src/librustc_metadata/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ crate-type = ["dylib"]
1010

1111
[dependencies]
1212
flate2 = "1.0"
13-
log = "0.3"
13+
log = "0.4"
1414
proc_macro = { path = "../libproc_macro" }
1515
rustc = { path = "../librustc" }
1616
rustc_back = { path = "../librustc_back" }

src/librustc_metadata/creader.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ impl<'a> middle::cstore::CrateLoader for CrateLoader<'a> {
10511051
self.inject_allocator_crate(krate);
10521052
self.inject_panic_runtime(krate);
10531053

1054-
if log_enabled!(log::LogLevel::Info) {
1054+
if log_enabled!(log::Level::Info) {
10551055
dump_crates(&self.cstore);
10561056
}
10571057
}

src/librustc_mir/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["dylib"]
1111
[dependencies]
1212
bitflags = "1.0"
1313
graphviz = { path = "../libgraphviz" }
14-
log = "0.3"
14+
log = "0.4"
1515
log_settings = "0.1.1"
1616
rustc = { path = "../librustc" }
1717
rustc_back = { path = "../librustc_back" }

src/librustc_mir/interpret/eval_context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ impl<'a, 'tcx, M: Machine<'tcx>> EvalContext<'a, 'tcx, M> {
781781
}
782782
}
783783

784-
if log_enabled!(::log::LogLevel::Trace) {
784+
if log_enabled!(::log::Level::Trace) {
785785
self.dump_local(dest);
786786
}
787787

src/librustc_mir/interpret/place.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl<'a, 'tcx, M: Machine<'tcx>> EvalContext<'a, 'tcx, M> {
209209
}
210210
};
211211

212-
if log_enabled!(::log::LogLevel::Trace) {
212+
if log_enabled!(::log::Level::Trace) {
213213
self.dump_local(place);
214214
}
215215

src/librustc_passes/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ path = "lib.rs"
99
crate-type = ["dylib"]
1010

1111
[dependencies]
12-
log = "0.3"
12+
log = "0.4"
1313
rustc = { path = "../librustc" }
1414
rustc_const_eval = { path = "../librustc_const_eval" }
1515
rustc_const_math = { path = "../librustc_const_math" }

src/librustc_resolve/Cargo.toml

+1-1
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
rustc = { path = "../librustc" }
1616
arena = { path = "../libarena" }

src/librustc_save_analysis/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ path = "lib.rs"
99
crate-type = ["dylib"]
1010

1111
[dependencies]
12-
log = "0.3"
12+
log = "0.4"
1313
rustc = { path = "../librustc" }
1414
rustc_data_structures = { path = "../librustc_data_structures" }
1515
rustc_typeck = { path = "../librustc_typeck" }

src/librustc_trans/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test = false
1313
bitflags = "1.0"
1414
flate2 = "1.0"
1515
jobserver = "0.1.5"
16-
log = "0.3"
16+
log = "0.4"
1717
num_cpus = "1.0"
1818
rustc = { path = "../librustc" }
1919
rustc-demangle = "0.1.4"

src/librustc_trans_utils/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test = false
1212
[dependencies]
1313
ar = "0.3.0"
1414
flate2 = "1.0"
15-
log = "0.3"
15+
log = "0.4"
1616

1717
syntax = { path = "../libsyntax" }
1818
syntax_pos = { path = "../libsyntax_pos" }

src/librustc_typeck/Cargo.toml

+1-1
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
arena = { path = "../libarena" }
1616
fmt_macros = { path = "../libfmt_macros" }

src/libsyntax/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["dylib"]
1111
[dependencies]
1212
bitflags = "1.0"
1313
serialize = { path = "../libserialize" }
14-
log = "0.3"
14+
log = "0.4"
1515
syntax_pos = { path = "../libsyntax_pos" }
1616
rustc_cratesio_shim = { path = "../librustc_cratesio_shim" }
1717
rustc_errors = { path = "../librustc_errors" }

src/tools/compiletest/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ diff = "0.1.10"
88
env_logger = { version = "0.4", default-features = false }
99
filetime = "0.1"
1010
getopts = "0.2"
11-
log = "0.3"
11+
log = "0.4"
1212
regex = "0.2"
1313
rustc-serialize = "0.3"
1414

0 commit comments

Comments
 (0)