about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-15 08:03:07 +0000
committerbors <bors@rust-lang.org>2023-11-15 08:03:07 +0000
commitee85f7fc48bf3f21e212d46b4a2be12f307abea5 (patch)
treea00166aabfc2e2ca31c8dad08854ce7dad85f543 /compiler/rustc_query_impl/src
parent698fcc8219e6dd690b148a23af10a0e5747621fe (diff)
parent86e5d36c19d2cd53f55e8a2e0b8589f756ff7d66 (diff)
downloadrust-ee85f7fc48bf3f21e212d46b4a2be12f307abea5.tar.gz
rust-ee85f7fc48bf3f21e212d46b4a2be12f307abea5.zip
Auto merge of #117814 - RalfJung:rustc-logger-without-set-var, r=TaKO8Ki
rustc_log: provide a way to init logging based on the values, not names, of the env vars

Miri wants to affect how rustc does logging. So far this required setting environment variables before calling `rustc_driver::init_rustc_env_logger`. However, `set_var` is a function one should really [avoid calling](https://github.com/rust-lang/rust/issues/90308), so this adds the necessary APIs to rustc such that Miri can just pass it the *values* of all the log-relevant environment variables, rather than having to change the global environment.
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions