File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ install:
31
31
build_script :
32
32
- set RUST_TEST_NOCAPTURE=1
33
33
- set RUST_BACKTRACE=1
34
+ - set MIRI_BACKTRACE=1
34
35
- set RUSTFLAGS=-C debug-assertions
35
36
# Build and install miri
36
37
- cargo build --release --all-features --all-targets
@@ -41,7 +42,7 @@ build_script:
41
42
42
43
test_script :
43
44
# Test miri
44
- - cargo test --release --all-features
45
+ - cargo test --release --all-features heap
45
46
# Test cargo integration
46
47
- cd test-cargo-miri
47
48
- ' "C:\msys64\mingw64\bin\python3.exe" run-test.py'
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ fn check_overalign_requests<T: Alloc>(mut allocator: T) {
40
40
allocator. alloc ( Layout :: from_size_align ( size, align) . unwrap ( ) ) . unwrap ( )
41
41
} ) . collect ( ) ;
42
42
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 ,
44
45
"Got a pointer less aligned than requested" )
45
46
}
46
47
You can’t perform that action at this time.
0 commit comments