We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8983783 commit dd6acebCopy full SHA for dd6aceb
ci/miri.sh
@@ -9,4 +9,4 @@ rustup toolchain install nightly --component miri
9
rustup override set nightly
10
cargo miri setup
11
12
-MIRIFLAGS='-Zmiri-strict-provenance' cargo miri test
+MIRIFLAGS='-Zmiri-strict-provenance' cargo miri test --features nightly
src/set.rs
@@ -2907,4 +2907,11 @@ mod test_set {
2907
set.insert(i);
2908
}
2909
2910
+
2911
+ #[test]
2912
+ fn collect() {
2913
+ // At the time of writing, this hits the ZST case in from_base_index
2914
+ // (and without the `map`, it does not).
2915
+ let mut _set: HashSet<_> = (0..3).map(|_| ()).collect();
2916
+ }
2917
0 commit comments