mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Rename to RUSTC_LOG
This commit is contained in:
parent
03122e1bac
commit
bf4d0adf23
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -694,7 +694,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
|
||||
|
@ -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
|
||||
/// log crate version
|
||||
pub fn init_rustc_env_logger() {
|
||||
env_logger::init();
|
||||
env_logger::init_from_env("RUSTC_LOG");
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
|
@ -8,4 +8,4 @@ all:
|
||||
mkdir -p $(TMPDIR)/outdir
|
||||
$(RUSTC) foo.rs -o $(TMPDIR)/outdir/$(NAME)
|
||||
ln -nsf outdir/$(NAME) $(TMPDIR)
|
||||
RUST_LOG=rustc_metadata::loader $(RUSTC) bar.rs
|
||||
RUSTC_LOG=rustc_metadata::loader $(RUSTC) bar.rs
|
||||
|
@ -1,5 +1,5 @@
|
||||
// run-pass
|
||||
// exec-env:RUST_LOG=rustc::middle=debug
|
||||
// exec-env:RUSTC_LOG=rustc::middle=debug
|
||||
|
||||
fn main() {
|
||||
let b = 1isize;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// ignore-windows
|
||||
// ignore-emscripten no threads support
|
||||
// exec-env:RUST_LOG=debug
|
||||
// exec-env:RUSTC_LOG=debug
|
||||
|
||||
use std::cell::Cell;
|
||||
use std::fmt;
|
||||
|
@ -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
|
||||
// infrastructure, and when std::ptr was used during runtime initialization,
|
||||
|
@ -8,6 +8,6 @@
|
||||
// dont-check-compiler-stderr
|
||||
// compile-flags: --error-format human
|
||||
|
||||
// rustc-env:RUST_LOG=debug
|
||||
// rustc-env:RUSTC_LOG=debug
|
||||
|
||||
fn main() {}
|
||||
|
@ -2,7 +2,7 @@
|
||||
#![allow(unused_must_use)]
|
||||
#![allow(unused_mut)]
|
||||
// ignore-windows
|
||||
// exec-env:RUST_LOG=debug
|
||||
// exec-env:RUSTC_LOG=debug
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
// regression test for issue #10405, make sure we don't call println! too soon.
|
||||
|
Loading…
Reference in New Issue
Block a user