-
Notifications
You must be signed in to change notification settings - Fork 0
Using dev builds
Aman Arora edited this page Aug 16, 2020
·
1 revision
To use the dev build:
- Add the generated toolchain to rustup
rustup toolchain link <name> $PROJECT_ROOT/build/x86_64-unknown-linux-gnu/stage1
- Tell rustc which toolchain to use
rustc +stage1 ...
- To print out debug logs (
debug!
), set the RUSTC_LOG environment variable
Eg:
# Create toolchain under the name "stage1"
% rustup toolchain link stage1 build/x86_64-unknown-linux-gnu/stage1
% cd ~/my_test_suite
# Use the stage1 toolchain
% rustc +stage1 drop_move.rs
# Debug print everything in librustc_infer
% RUSTC_LOG=rustc_infer rustc +stage1 drop_move.rs
# More precise debug printing librustc_infer
% RUSTC_LOG=rustc_infer::infer rustc +stage1 drop_move.rs
# Even more precise debug printing librustc_infer
% RUSTC_LOG=rustc_infer::infer::error_reporting rustc +stage1 drop_move.rs