File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,13 @@ Further caveats that Miri users should be aware of:
72
72
when ` SeqCst ` fences are used that are not actually permitted by the Rust memory model, and it
73
73
cannot produce all behaviors possibly observable on real hardware.
74
74
75
- Moreover, Miri fundamentally cannot tell you whether your code is * sound* . [ Soundness] is the property
76
- of never causing undefined behavior when invoked from arbitrary safe code, even in combination with
75
+ Moreover, Miri fundamentally cannot ensure that your code is * sound* . [ Soundness] is the property of
76
+ never causing undefined behavior when invoked from arbitrary safe code, even in combination with
77
77
other sound code. In contrast, Miri can just tell you if * a particular way of interacting with your
78
- code* (e.g., a test suite) causes any undefined behavior. It is up to you to ensure sufficient
79
- coverage.
78
+ code* (e.g., a test suite) causes any undefined behavior * in a particular execution* (of which there
79
+ may be many, e.g. when concurrency or other forms of non-determinism are involved). When Miri finds
80
+ UB, your code is definitely unsound, but when Miri does not find UB, then you may just have to test
81
+ more inputs or more possible non-deterministic choices.
80
82
81
83
[ rust ] : https://www.rust-lang.org/
82
84
[ mir ] : https://github.com/rust-lang/rfcs/blob/master/text/1211-mir.md
You can’t perform that action at this time.
0 commit comments