Consider running unit tests (or a subset of them) under Miri #546
Closed
wesleywiser
started this conversation in
Ideas
Replies: 2 comments
|
Closing this discussion as GitHub issues are being used to track further miri work. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This would help find issues like #530 and #544. Miri is a dynamic analysis (like ASAN or valgrind) so it likely won't find every instance of UB in your code but will help you with any code that is covered by your unit tests and does not run into the platform limitations the tool has.
When investigating #544, I was able to run the tool locally by finding a nightly toolchain that corresponds to Rust 1.85 (such as
nightly-2025-01-03), installing it and then running whichever unit tests, you want. For example:You'll probably also discover that some of your tests have UB (at least this one did #545) so I think this would be a great driver to improve quality!
All reactions