Skip to content

Commit 4f974ef

Browse files
bors[bot]RalfJung
andauthored
Merge #99
99: miri: enable leakcheck r=matklad a=RalfJung rust-lang/miri#940 is fixed, so we should be able to enable the leak checker now. :) (However, we'll have to wait until rust-lang/rust#70897 lands so that this is available via rustup.) Co-authored-by: Ralf Jung <[email protected]>
2 parents 3835d6e + 2f0fd3e commit 4f974ef

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

run-miri-tests.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@ rustup toolchain add "$MIRI_NIGHTLY"
88
rustup component add miri --toolchain "$MIRI_NIGHTLY"
99
rustup run "$MIRI_NIGHTLY" -- cargo miri setup
1010

11-
# Miri considers runtime-allocated data in statics as leaked, so we
12-
# have to ignore leeks. See <https://github.com/rust-lang/miri/issues/940>.
13-
rustup run "$MIRI_NIGHTLY" -- cargo miri test -- -Zmiri-ignore-leaks
11+
rustup run "$MIRI_NIGHTLY" -- cargo miri test

tests/test.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ mod sync {
448448
}
449449

450450
#[test]
451-
#[cfg_attr(miri, ignore)] // leaks memory
452451
fn static_lazy() {
453452
static XS: Lazy<Vec<i32>> = Lazy::new(|| {
454453
let mut xs = Vec::new();
@@ -467,7 +466,6 @@ mod sync {
467466
}
468467

469468
#[test]
470-
#[cfg_attr(miri, ignore)] // leaks memory
471469
fn static_lazy_via_fn() {
472470
fn xs() -> &'static Vec<i32> {
473471
static XS: OnceCell<Vec<i32>> = OnceCell::new();

0 commit comments

Comments
 (0)