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 25, 2021
1 parent 23d54ad commit 3d16e15
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion compiler/rustc_index/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![feature(allow_internal_unstable)]
#![feature(bench_black_box)]
#![feature(const_fn)]
#![feature(const_panic)]
#![feature(extend_one)]
#![feature(iter_zip)]
Expand Down
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

0 comments on commit 3d16e15

Please sign in to comment.