We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ea4b50 commit 1f945ccCopy full SHA for 1f945cc
.appveyor.yml
@@ -31,6 +31,7 @@ install:
31
build_script:
32
- set RUST_TEST_NOCAPTURE=1
33
- set RUST_BACKTRACE=1
34
+ - set MIRI_BACKTRACE=1
35
- set RUSTFLAGS=-C debug-assertions
36
# Build and install miri
37
- cargo build --release --all-features --all-targets
tests/run-pass/heap_allocator.rs
@@ -40,7 +40,8 @@ fn check_overalign_requests<T: Alloc>(mut allocator: T) {
40
allocator.alloc(Layout::from_size_align(size, align).unwrap()).unwrap()
41
}).collect();
42
for &ptr in &pointers {
43
- assert_eq!((ptr.as_ptr() as usize) % align, 0,
+ let ptr = ptr.as_ptr() as usize;
44
+ assert_eq!(ptr % align, 0,
45
"Got a pointer less aligned than requested")
46
}
47
0 commit comments