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 6868 run : rustup update stable
6969 - run : cargo fmt --all -- --check
7070
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+
7183 security_audit :
7284 runs-on : ubuntu-latest
7385 steps :
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ impl<T> Task<T> {
9999 /// # Examples
100100 ///
101101 /// ```
102+ /// # if cfg!(miri) { return; } // Miri does not support epoll
102103 /// use smol::{future, Executor, Timer};
103104 /// use std::thread;
104105 /// use std::time::Duration;
@@ -485,6 +486,7 @@ impl<T> FallibleTask<T> {
485486 /// # Examples
486487 ///
487488 /// ```
489+ /// # if cfg!(miri) { return; } // Miri does not support epoll
488490 /// use smol::{future, Executor, Timer};
489491 /// use std::thread;
490492 /// use std::time::Duration;
You can’t perform that action at this time.
0 commit comments