Skip to content

Commit

Permalink
fix sanitizer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Apr 24, 2021
1 parent 0d52599 commit 56c0fb6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/test/ui/sanitize/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// error-pattern: AddressSanitizer: stack-buffer-overflow
// error-pattern: 'xs' (line 15) <== Memory access at offset

#![feature(test)]
#![feature(bench_black_box)]

use std::hint::black_box;

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/sanitize/hwaddress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// run-fail
// error-pattern: HWAddressSanitizer: tag-mismatch

#![feature(test)]
#![feature(bench_black_box)]

use std::hint::black_box;

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/sanitize/leak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// run-fail
// error-pattern: LeakSanitizer: detected memory leaks

#![feature(test)]
#![feature(bench_black_box)]

use std::hint::black_box;
use std::mem;
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/sanitize/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#![feature(core_intrinsics)]
#![feature(start)]
#![feature(test)]
#![feature(bench_black_box)]

use std::hint::black_box;
use std::mem::MaybeUninit;
Expand Down
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer

0 comments on commit 56c0fb6

Please sign in to comment.