File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,13 @@ interpreted program or test suite after the second `--`. For example, `cargo
7979miri run -- -Zmiri-disable-validation` runs the program without validation of
8080basic type invariants and without checking the aliasing of references.
8181
82- When running code via ` cargo miri ` , the ` miri ` config flag is set. You can
83- use this to exclude test cases that will fail under Miri because they do things
82+ When compiling code via ` cargo miri ` , the ` miri ` config flag is set. You can
83+ use this to ignore test cases that will fail under Miri because they do things
8484Miri does not support:
8585
8686``` rust
87- #[cfg(not(miri))]
8887#[test]
88+ #[cfg_attr(miri, ignore)]
8989fn does_not_work_on_miri () {
9090 std :: thread :: spawn (|| println! (" Hello Thread!" ))
9191 . join ()
You can’t perform that action at this time.
0 commit comments