Skip to content

Commit 56c0fb6

Browse files
committed
fix sanitizer tests
1 parent 0d52599 commit 56c0fb6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/test/ui/sanitize/address.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// error-pattern: AddressSanitizer: stack-buffer-overflow
88
// error-pattern: 'xs' (line 15) <== Memory access at offset
99

10-
#![feature(test)]
10+
#![feature(bench_black_box)]
1111

1212
use std::hint::black_box;
1313

src/test/ui/sanitize/hwaddress.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// run-fail
88
// error-pattern: HWAddressSanitizer: tag-mismatch
99

10-
#![feature(test)]
10+
#![feature(bench_black_box)]
1111

1212
use std::hint::black_box;
1313

src/test/ui/sanitize/leak.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// run-fail
77
// error-pattern: LeakSanitizer: detected memory leaks
88

9-
#![feature(test)]
9+
#![feature(bench_black_box)]
1010

1111
use std::hint::black_box;
1212
use std::mem;

src/test/ui/sanitize/memory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#![feature(core_intrinsics)]
1515
#![feature(start)]
16-
#![feature(test)]
16+
#![feature(bench_black_box)]
1717

1818
use std::hint::black_box;
1919
use std::mem::MaybeUninit;

src/tools/rust-analyzer

0 commit comments

Comments
 (0)