Stream: t-compiler/help

Topic: rustc `debug!` when running rustdoc


LeSeulArtichaut (May 27 2020 at 22:16, on Zulip):

I'd like to have debug information emitted in rustc, for example from rustc_lint::levels. But, when executing rustdoc, i.e.

RUSTC_LOG=rustc_lint::levels ./build/x86_64-apple-darwin/stage1/bin/rustdoc file.rs

I don't get any debug output. Even setting RUSTC_LOG=debug doesn't get me anything. Is it possible to actually get some output? Do I need to compile rustdoc to stage 2?

simulacrum (May 27 2020 at 22:19, on Zulip):

stage 2 won't make any difference

simulacrum (May 27 2020 at 22:19, on Zulip):

@LeSeulArtichaut try RUSTDOC_LOG

LeSeulArtichaut (May 27 2020 at 22:21, on Zulip):

That works, thanks

LeSeulArtichaut (May 27 2020 at 22:22, on Zulip):

simulacrum said:

stage 2 won't make any difference

I wondered if rustdoc was actually running the stage0 compiler, but that wouldn't make sense I guess. Thanks for the help!

Last update: Jan 22 2021 at 13:15UTC