File tree 6 files changed +388
-7
lines changed 6 files changed +388
-7
lines changed Original file line number Diff line number Diff line change @@ -592,10 +592,10 @@ jobs:
592
592
# TODO(https://github.com/model-checking/kani-github-action/issues/56):
593
593
# Go back to testing all features once the Kani GitHub Action supports
594
594
# specifying a particular toolchain.
595
- args : " --package zerocopy --features __internal_use_only_features_that_work_on_stable --output-format=terse -Zfunction-contracts --randomize-layout --memory-safety-checks --overflow-checks --undefined-function-checks --unwinding-checks"
595
+ args : " --package zerocopy --features __internal_use_only_features_that_work_on_stable --output-format=terse -Zfunction-contracts -Zmem-predicates - -randomize-layout --memory-safety-checks --overflow-checks --undefined-function-checks --unwinding-checks"
596
596
# This version is automatically rolled by
597
597
# `roll-pinned-toolchain-versions.yml`.
598
- kani-version : 0.55 .0
598
+ kani-version : 0.60 .0
599
599
600
600
# NEON intrinsics are currently broken on big-endian platforms. [1] This test ensures
601
601
# that we don't accidentally attempt to compile these intrinsics on such platforms. We
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ jobs:
144
144
runs-on : ubuntu-latest
145
145
strategy :
146
146
matrix :
147
- branch : ["main", "v0.7.x" ]
147
+ branch : ["main"]
148
148
name : Roll pinned Kani version
149
149
steps :
150
150
- name : Checkout code
Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ use std::io;
377
377
378
378
use crate :: pointer:: invariant:: { self , BecauseExclusive } ;
379
379
380
- #[ cfg( any( feature = "alloc" , test) ) ]
380
+ #[ cfg( any( feature = "alloc" , test, kani ) ) ]
381
381
extern crate alloc;
382
382
#[ cfg( any( feature = "alloc" , test) ) ]
383
383
use alloc:: { boxed:: Box , vec:: Vec } ;
@@ -738,8 +738,13 @@ pub unsafe trait KnownLayout {
738
738
/// The type of metadata stored in a pointer to `Self`.
739
739
///
740
740
/// This is `()` for sized types and `usize` for slice DSTs.
741
+ #[ cfg( not( kani) ) ]
741
742
type PointerMetadata : PointerMetadata ;
742
743
744
+ #[ cfg( kani) ]
745
+ #[ allow( missing_docs) ]
746
+ type PointerMetadata : PointerMetadata + kani:: Arbitrary ;
747
+
743
748
/// A maybe-uninitialized analog of `Self`
744
749
///
745
750
/// # Safety
You can’t perform that action at this time.
0 commit comments