Skip to content

Commit ce935c0

Browse files
committed
Patch Kani analysis script
1 parent 4c88768 commit ce935c0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/run-kani.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,18 @@ main() {
304304
"$kani_path" list -Z list $unstable_args ./library --std --format json
305305
echo "Running Kani's std-analysis command..."
306306
pushd $build_dir
307+
cat | patch -p1 << "EOF"
308+
--- a/scripts/std-analysis.sh
309+
+++ b/scripts/std-analysis.sh
310+
@@ -61,6 +61,7 @@ then
311+
fi
312+
cargo new std_lib_analysis --lib
313+
cd std_lib_analysis
314+
+sed -i '1i cargo-features = ["edition2024"]' Cargo.toml
315+
316+
echo '
317+
pub fn dummy() {
318+
EOF
307319
./scripts/std-analysis.sh
308320
popd
309321
pushd scripts/kani-std-analysis

0 commit comments

Comments
 (0)