Skip to content

Commit bf4d0ad

Browse files
committed
Rename to RUSTC_LOG
1 parent 03122e1 commit bf4d0ad

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

src/bootstrap/native.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ fn configure_cmake(builder: &Builder<'_>,
436436
}
437437

438438
if env::var_os("SCCACHE_ERROR_LOG").is_some() {
439-
cfg.env("RUST_LOG", "sccache=warn");
439+
cfg.env("RUSTC_LOG", "sccache=warn");
440440
}
441441
}
442442

src/librustc/infer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
694694
/// potentially leaving "dangling type variables" behind.
695695
/// In such cases, an assertion will fail when attempting to
696696
/// register obligations, within a snapshot. Very useful, much
697-
/// better than grovelling through megabytes of `RUST_LOG` output.
697+
/// better than grovelling through megabytes of `RUSTC_LOG` output.
698698
///
699699
/// HOWEVER, in some cases the flag is unhelpful. In particular, we
700700
/// sometimes create a "mini-fulfilment-cx" in which we enroll

src/librustc_driver/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ pub fn report_ices_to_stderr_if_any<F: FnOnce() -> R, R>(f: F) -> Result<R, Erro
11631163
/// This allows tools to enable rust logging without having to magically match rustc's
11641164
/// log crate version
11651165
pub fn init_rustc_env_logger() {
1166-
env_logger::init();
1166+
env_logger::init_from_env("RUSTC_LOG");
11671167
}
11681168

11691169
pub fn main() {

src/test/run-make-fulldeps/libs-through-symlinks/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ all:
88
mkdir -p $(TMPDIR)/outdir
99
$(RUSTC) foo.rs -o $(TMPDIR)/outdir/$(NAME)
1010
ln -nsf outdir/$(NAME) $(TMPDIR)
11-
RUST_LOG=rustc_metadata::loader $(RUSTC) bar.rs
11+
RUSTC_LOG=rustc_metadata::loader $(RUSTC) bar.rs

src/test/run-pass/issues/issue-18075.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// exec-env:RUST_LOG=rustc::middle=debug
2+
// exec-env:RUSTC_LOG=rustc::middle=debug
33

44
fn main() {
55
let b = 1isize;

src/test/run-pass/logging-only-prints-once.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ignore-windows
22
// ignore-emscripten no threads support
3-
// exec-env:RUST_LOG=debug
3+
// exec-env:RUSTC_LOG=debug
44

55
use std::cell::Cell;
66
use std::fmt;

src/test/run-pass/logging_before_rt_started.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// exec-env:RUST_LOG=std::ptr
1+
// exec-env:RUSTC_LOG=std::ptr
22

33
// In issue #9487, it was realized that std::ptr was invoking the logging
44
// infrastructure, and when std::ptr was used during runtime initialization,

src/test/run-pass/rustc-rust-log.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
// dont-check-compiler-stderr
99
// compile-flags: --error-format human
1010

11-
// rustc-env:RUST_LOG=debug
11+
// rustc-env:RUSTC_LOG=debug
1212

1313
fn main() {}

src/test/run-pass/threads-sendsync/spawning-with-debug.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#![allow(unused_must_use)]
33
#![allow(unused_mut)]
44
// ignore-windows
5-
// exec-env:RUST_LOG=debug
5+
// exec-env:RUSTC_LOG=debug
66
// ignore-emscripten no threads support
77

88
// regression test for issue #10405, make sure we don't call println! too soon.

0 commit comments

Comments
 (0)