Skip to content

Commit e9b6085

Browse files
committed
Auto merge of #146188 - dpaoliello:tracing, r=Kobzol
Update tracing and fix binary regression Previous attempts (#127316, #134770) saw binary size regressions, this was root caused to <tokio-rs/tracing#2553> which changed the behavior of the `max_level_info` feature flag to match the docs (i.e., that flag only applies for debug builds and `release_max_level_info` applies for release builds). This change bumps the `tracing` version and sets both `max_level_info` and `release_max_level_info` when to match rustc's own `max_level_info`.
2 parents 9c27f27 + 266f8c9 commit e9b6085

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Cargo.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5519,11 +5519,10 @@ checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801"
55195519

55205520
[[package]]
55215521
name = "tracing"
5522-
version = "0.1.37"
5522+
version = "0.1.41"
55235523
source = "registry+https://github.com/rust-lang/crates.io-index"
5524-
checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8"
5524+
checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"
55255525
dependencies = [
5526-
"cfg-if",
55275526
"pin-project-lite",
55285527
"tracing-attributes",
55295528
"tracing-core",

compiler/rustc_log/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ edition = "2024"
55

66
[dependencies]
77
# tidy-alphabetical-start
8-
# tracing > 0.1.37 have huge binary size / instructions regression
9-
tracing = "=0.1.37"
8+
tracing = "0.1.41"
109
tracing-subscriber = { version = "0.3.3", default-features = false, features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"] }
1110
tracing-tree = "0.3.1"
1211
# tidy-alphabetical-end
1312

1413
[features]
1514
# tidy-alphabetical-start
16-
max_level_info = ['tracing/max_level_info']
15+
max_level_info = ['tracing/max_level_info', 'tracing/release_max_level_info']
1716
# tidy-alphabetical-end

0 commit comments

Comments
 (0)