1

command to print MIR

cargo +nightly rustc -- -Z unpretty=mir

command to print the volume of each variant of enum

Reference https://nnethercote.github.io/perf-book/type-sizes.html

rustc +nightly -Zprint-type-sizes input.rs

run the test

Restrict to use only single thread:

cargo test -- --test-threads 1

println can be used during running tests:

cargo test -- --nocapture

TODO


题叶
17.3k 声望2.6k 粉丝

Calcit 语言作者