Skip to content

Commit

Permalink
debug on AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jun 30, 2019
1 parent 0ea4b50 commit 1f945cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ install:
build_script:
- set RUST_TEST_NOCAPTURE=1
- set RUST_BACKTRACE=1
- set MIRI_BACKTRACE=1
- set RUSTFLAGS=-C debug-assertions
# Build and install miri
- cargo build --release --all-features --all-targets
Expand Down
3 changes: 2 additions & 1 deletion tests/run-pass/heap_allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ fn check_overalign_requests<T: Alloc>(mut allocator: T) {
allocator.alloc(Layout::from_size_align(size, align).unwrap()).unwrap()
}).collect();
for &ptr in &pointers {
assert_eq!((ptr.as_ptr() as usize) % align, 0,
let ptr = ptr.as_ptr() as usize;
assert_eq!(ptr % align, 0,
"Got a pointer less aligned than requested")
}

Expand Down

0 comments on commit 1f945cc

Please sign in to comment.