I'm modifying the Rust compiler for a project. I've built my own toolchain called
stage1. To test my project, I'd like to run tests with
cargo +stage1 test and observe the compiler's logging output using
Goal: Logging output from the Rust compiler compiling my tests
RUSTC_LOG=rustc_mir::transform=info cargo +stage1 test (for example)
Result: ALL logging output from compiling my dependencies (
rand, etc.) as well as my tests.
I don't want to see the logs from
rand, etc.. I only want to see the logs from compiling my tests.
Is there a way to achieve this?