Skip to content

Commit

Permalink
Auto merge of #117814 - RalfJung:rustc-logger-without-set-var, r=TaKO8Ki
Browse files Browse the repository at this point in the history
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](rust-lang/rust#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.
  • Loading branch information
bors committed Nov 15, 2023
2 parents f3f1191 + 56f67f9 commit 1e816c1
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 1e816c1

Please sign in to comment.