Skip to content

Commit 5e7180b

Browse files
committed
Auto merge of #1293 - Firstyear:1289-miri-readme, r=RalfJung
Update readme to make supported code clearer Fixes #1289 This makes it clearer in the readme how miri will warn of supported or unsupported code in a program under test/run. Thanks!
2 parents 26d7e9b + ef89525 commit 5e7180b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ fn does_not_work_on_miri() {
100100
}
101101
```
102102

103+
An exhaustive list of what `miri` does not support is not available, as this could be
104+
an unbounded set with FFI and more. However `miri` will explicitly tell you when it finds
105+
something unsupported with an error, containing a message such as:
106+
107+
```
108+
error: unsupported operation: can't call foreign function: mach_timebase_info
109+
...
110+
= help: this is likely not a bug in the program; it indicates that the program \
111+
performed an operation that the interpreter does not support
112+
```
113+
103114
### Running Miri on CI
104115

105116
To run Miri on CI, make sure that you handle the case where the latest nightly

0 commit comments

Comments
 (0)