我需要關閉單元測驗中的溢位檢查。我可以使用命令列來完成此操作cargo test --release,但是:
- rust-analyzer 提供的 GUI 測驗按鈕提供了更好的體驗,但是它們被配置為在除錯模式下運行并啟用溢位檢查。
cargo test --release隱藏println!宣告,但我想看到它們。
uj5u.com熱心網友回復:
只需禁用 Cargo.toml 檔案中測驗的溢位檢查:
[profile.test]
overflow-checks = false
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/369229.html
上一篇:限制惰性列中的專案
下一篇:AndroidEspresso:java.lang.NoClassDefFoundError:決議失敗:Landroidx/test/platform/io/FileTestStorage;
