about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-09-09 00:47:03 +0000
committerbors <bors@rust-lang.org>2025-09-09 00:47:03 +0000
commite9b6085088fd671ecfbe4cbebe1d26796d8bfa30 (patch)
tree0bb24bb7c2b5f0aaf61c4a473195d6a6673dcf26 /compiler
parent9c27f27ea3bab79a2fec827ef3ae0009959d60f4 (diff)
parent266f8c9c0073745044a8eaeef5803b90090f5ad5 (diff)
downloadrust-e9b6085088fd671ecfbe4cbebe1d26796d8bfa30.tar.gz
rust-e9b6085088fd671ecfbe4cbebe1d26796d8bfa30.zip
Auto merge of #146188 - dpaoliello:tracing, r=Kobzol
Update tracing and fix binary regression

Previous attempts (rust-lang/rust#127316, rust-lang/rust#134770) saw binary size regressions, this was root caused to <https://github.com/tokio-rs/tracing/pull/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`.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_log/Cargo.toml5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_log/Cargo.toml b/compiler/rustc_log/Cargo.toml
index 2332ff9b323..72f68d685cd 100644
--- a/compiler/rustc_log/Cargo.toml
+++ b/compiler/rustc_log/Cargo.toml
@@ -5,13 +5,12 @@ edition = "2024"
 
 [dependencies]
 # tidy-alphabetical-start
-# tracing > 0.1.37 have huge binary size / instructions regression
-tracing = "=0.1.37"
+tracing = "0.1.41"
 tracing-subscriber = { version = "0.3.3", default-features = false, features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"] }
 tracing-tree = "0.3.1"
 # tidy-alphabetical-end
 
 [features]
 # tidy-alphabetical-start
-max_level_info = ['tracing/max_level_info']
+max_level_info = ['tracing/max_level_info', 'tracing/release_max_level_info']
 # tidy-alphabetical-end