Rename to RUSTC_LOG

This commit is contained in:
Yuki OKUSHI 2019-04-30 17:27:53 +09:00
parent 03122e1bac
commit bf4d0adf23
9 changed files with 9 additions and 9 deletions

View File

@ -436,7 +436,7 @@ fn configure_cmake(builder: &Builder<'_>,
} }
if env::var_os("SCCACHE_ERROR_LOG").is_some() { if env::var_os("SCCACHE_ERROR_LOG").is_some() {
cfg.env("RUST_LOG", "sccache=warn"); cfg.env("RUSTC_LOG", "sccache=warn");
} }
} }

View File

@ -694,7 +694,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
/// potentially leaving "dangling type variables" behind. /// potentially leaving "dangling type variables" behind.
/// In such cases, an assertion will fail when attempting to /// In such cases, an assertion will fail when attempting to
/// register obligations, within a snapshot. Very useful, much /// 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 /// HOWEVER, in some cases the flag is unhelpful. In particular, we
/// sometimes create a "mini-fulfilment-cx" in which we enroll /// sometimes create a "mini-fulfilment-cx" in which we enroll

View File

@ -1163,7 +1163,7 @@ pub fn report_ices_to_stderr_if_any<F: FnOnce() -> R, R>(f: F) -> Result<R, Erro
/// This allows tools to enable rust logging without having to magically match rustc's /// This allows tools to enable rust logging without having to magically match rustc's
/// log crate version /// log crate version
pub fn init_rustc_env_logger() { pub fn init_rustc_env_logger() {
env_logger::init(); env_logger::init_from_env("RUSTC_LOG");
} }
pub fn main() { pub fn main() {

View File

@ -8,4 +8,4 @@ all:
mkdir -p $(TMPDIR)/outdir mkdir -p $(TMPDIR)/outdir
$(RUSTC) foo.rs -o $(TMPDIR)/outdir/$(NAME) $(RUSTC) foo.rs -o $(TMPDIR)/outdir/$(NAME)
ln -nsf outdir/$(NAME) $(TMPDIR) ln -nsf outdir/$(NAME) $(TMPDIR)
RUST_LOG=rustc_metadata::loader $(RUSTC) bar.rs RUSTC_LOG=rustc_metadata::loader $(RUSTC) bar.rs

View File

@ -1,5 +1,5 @@
// run-pass // run-pass
// exec-env:RUST_LOG=rustc::middle=debug // exec-env:RUSTC_LOG=rustc::middle=debug
fn main() { fn main() {
let b = 1isize; let b = 1isize;

View File

@ -1,6 +1,6 @@
// ignore-windows // ignore-windows
// ignore-emscripten no threads support // ignore-emscripten no threads support
// exec-env:RUST_LOG=debug // exec-env:RUSTC_LOG=debug
use std::cell::Cell; use std::cell::Cell;
use std::fmt; use std::fmt;

View File

@ -1,4 +1,4 @@
// exec-env:RUST_LOG=std::ptr // exec-env:RUSTC_LOG=std::ptr
// In issue #9487, it was realized that std::ptr was invoking the logging // In issue #9487, it was realized that std::ptr was invoking the logging
// infrastructure, and when std::ptr was used during runtime initialization, // infrastructure, and when std::ptr was used during runtime initialization,

View File

@ -8,6 +8,6 @@
// dont-check-compiler-stderr // dont-check-compiler-stderr
// compile-flags: --error-format human // compile-flags: --error-format human
// rustc-env:RUST_LOG=debug // rustc-env:RUSTC_LOG=debug
fn main() {} fn main() {}

View File

@ -2,7 +2,7 @@
#![allow(unused_must_use)] #![allow(unused_must_use)]
#![allow(unused_mut)] #![allow(unused_mut)]
// ignore-windows // ignore-windows
// exec-env:RUST_LOG=debug // exec-env:RUSTC_LOG=debug
// ignore-emscripten no threads support // ignore-emscripten no threads support
// regression test for issue #10405, make sure we don't call println! too soon. // regression test for issue #10405, make sure we don't call println! too soon.