diff --git a/.gitignore b/.gitignore index 665fc20..d2599e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ target -./Cargo.lock +/Cargo.lock diff --git a/lib.rs b/lib.rs index 9a3bd63..d44e3b0 100644 --- a/lib.rs +++ b/lib.rs @@ -15,7 +15,7 @@ //! When this feature is enabled, `smallvec` depends on `std`. //! //! To depend on `smallvec` without `libstd`, use `default-features = false` in the `smallvec` -//! section of Cargo.toml to disable its `"std"` feature. +//! section of Cargo.toml to disable its `"write"` feature. //! //! ## `union` feature //! @@ -1984,7 +1984,6 @@ mod tests { ); } - #[cfg(all(feature = "std", not(miri)))] // Miri currently does not support unwinding #[test] // https://github.com/servo/rust-smallvec/issues/96 fn test_insert_many_panic() { @@ -2117,7 +2116,6 @@ mod tests { assert!(c > b); } - #[cfg(feature = "std")] #[test] fn test_hash() { use std::collections::hash_map::DefaultHasher; @@ -2381,10 +2379,10 @@ mod tests { assert_eq!(v[..], [1, 0][..]); } - #[cfg(feature = "std")] + #[cfg(feature = "write")] #[test] fn test_write() { - use io::Write; + use std::io::Write; let data = [1, 2, 3, 4, 5]; diff --git a/scripts/run_miri.sh b/scripts/run_miri.sh index 42f2884..c5e5376 100644 --- a/scripts/run_miri.sh +++ b/scripts/run_miri.sh @@ -16,6 +16,6 @@ rustup default "$MIRI_NIGHTLY" rustup component add miri cargo miri setup -cargo miri test --verbose -- -- -Zunstable-options --exclude-should-panic -cargo miri test --verbose --features union -- -- -Zunstable-options --exclude-should-panic -cargo miri test --verbose --all-features -- -- -Zunstable-options --exclude-should-panic +cargo miri test --verbose -- -Zmiri-ignore-leaks +cargo miri test --verbose --features union -- -Zmiri-ignore-leaks +cargo miri test --verbose --all-features -- -Zmiri-ignore-leaks