diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index 96aed729345..285f9458c44 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -436,7 +436,7 @@ fn configure_cmake(builder: &Builder<'_>, } if env::var_os("SCCACHE_ERROR_LOG").is_some() { - cfg.env("RUST_LOG", "sccache=warn"); + cfg.env("RUSTC_LOG", "sccache=warn"); } } diff --git a/src/librustc/infer/mod.rs b/src/librustc/infer/mod.rs index 65bc2b3e945..a8f39e44130 100644 --- a/src/librustc/infer/mod.rs +++ b/src/librustc/infer/mod.rs @@ -704,7 +704,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> { /// potentially leaving "dangling type variables" behind. /// In such cases, an assertion will fail when attempting to /// register obligations, within a snapshot. Very useful, much - /// better than grovelling through megabytes of `RUST_LOG` output. + /// better than grovelling through megabytes of `RUSTC_LOG` output. /// /// HOWEVER, in some cases the flag is unhelpful. In particular, we /// sometimes create a "mini-fulfilment-cx" in which we enroll diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index 6a5accc8d7f..5b42b049b5b 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -1163,7 +1163,7 @@ pub fn report_ices_to_stderr_if_any R, R>(f: F) -> Result