Skip to content

Commit b5ddbb8

Browse files
authored
Disable removal of storage markers (#3083)
Instead of turning on the address sanitizer to ensure storage markers (`StorageLive` and `StorageDead`) are kept in MIR, directly disable the MIR pass that removes them from MIR (https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20Keeping.20MIR's.20storage.20markers). This is to ensure we don't get additional instrumentation that is not relevant for Kani, and may unnecessarily increase the code size and compilation time. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
1 parent 4a1e1fc commit b5ddbb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kani-driver/src/call_single_file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl KaniSession {
123123
"-Z",
124124
"panic_abort_tests=yes",
125125
"-Z",
126-
"sanitizer=address",
126+
"mir-enable-passes=-RemoveStorageMarkers",
127127
]
128128
.map(OsString::from),
129129
);

0 commit comments

Comments
 (0)