Skip to content

Commit 1f945cc

Browse files
committed
debug on AppVeyor
1 parent 0ea4b50 commit 1f945cc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.appveyor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ install:
3131
build_script:
3232
- set RUST_TEST_NOCAPTURE=1
3333
- set RUST_BACKTRACE=1
34+
- set MIRI_BACKTRACE=1
3435
- set RUSTFLAGS=-C debug-assertions
3536
# Build and install miri
3637
- cargo build --release --all-features --all-targets

tests/run-pass/heap_allocator.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ fn check_overalign_requests<T: Alloc>(mut allocator: T) {
4040
allocator.alloc(Layout::from_size_align(size, align).unwrap()).unwrap()
4141
}).collect();
4242
for &ptr in &pointers {
43-
assert_eq!((ptr.as_ptr() as usize) % align, 0,
43+
let ptr = ptr.as_ptr() as usize;
44+
assert_eq!(ptr % align, 0,
4445
"Got a pointer less aligned than requested")
4546
}
4647

0 commit comments

Comments
 (0)