File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 68
68
run : rustup update stable
69
69
- run : cargo fmt --all -- --check
70
70
71
+ miri :
72
+ runs-on : ubuntu-latest
73
+ steps :
74
+ - uses : actions/checkout@v3
75
+ - name : Install Rust
76
+ run : rustup toolchain install nightly --component miri && rustup default nightly
77
+ - run : cargo miri test
78
+ env :
79
+ # -Zmiri-ignore-leaks is needed because we use detached threads in doctests
80
+ MIRIFLAGS : -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check -Zmiri-disable-isolation -Zmiri-ignore-leaks
81
+ RUSTFLAGS : ${{ env.RUSTFLAGS }} -Z randomize-layout
82
+
71
83
security_audit :
72
84
runs-on : ubuntu-latest
73
85
steps :
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ impl<T> Task<T> {
99
99
/// # Examples
100
100
///
101
101
/// ```
102
+ /// # if cfg!(miri) { return; } // Miri does not support epoll
102
103
/// use smol::{future, Executor, Timer};
103
104
/// use std::thread;
104
105
/// use std::time::Duration;
@@ -485,6 +486,7 @@ impl<T> FallibleTask<T> {
485
486
/// # Examples
486
487
///
487
488
/// ```
489
+ /// # if cfg!(miri) { return; } // Miri does not support epoll
488
490
/// use smol::{future, Executor, Timer};
489
491
/// use std::thread;
490
492
/// use std::time::Duration;
You can’t perform that action at this time.
0 commit comments