diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2021-10-10 19:59:36 +0100 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2021-10-10 19:59:36 +0100 |
| commit | 9e6e89af697dad4e4505111adef37733cdcbe47e (patch) | |
| tree | 39b9879bc54f6862e3bebaa2e9fb28690f988c75 /compiler/rustc_driver/src | |
| parent | 0c87288f92b7e6365d61cfbcbc453ea4c696c030 (diff) | |
| download | rust-9e6e89af697dad4e4505111adef37733cdcbe47e.tar.gz rust-9e6e89af697dad4e4505111adef37733cdcbe47e.zip | |
Fix RUSTC_LOG handling
Rustc was incorrectly reading the value of `RUSTC_LOG` as the environment vairable with the logging configuration, rather than the logging configuration itself.
Diffstat (limited to 'compiler/rustc_driver/src')
| -rw-r--r-- | compiler/rustc_driver/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs index 05c7e11cbc2..9a57ec99144 100644 --- a/compiler/rustc_driver/src/lib.rs +++ b/compiler/rustc_driver/src/lib.rs @@ -1259,7 +1259,7 @@ pub fn init_env_logger(env: &str) { }; let filter = match std::env::var(env) { - Ok(env) => EnvFilter::from_env(env), + Ok(env) => EnvFilter::new(env), _ => EnvFilter::default().add_directive(filter::Directive::from(LevelFilter::WARN)), }; |
