Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't crash benchcomp when rounding non-numeric values #10

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
"syn 2.0.65",
"syn 2.0.66",
]

[[package]]
Expand Down Expand Up @@ -481,7 +481,7 @@ dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
"syn 2.0.65",
"syn 2.0.66",
]

[[package]]
Expand Down Expand Up @@ -667,9 +667,9 @@ checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"

[[package]]
name = "parking_lot"
version = "0.12.2"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e4af0ca4f6caed20e900d564c242b8e5d4903fdacf31d3daf527b66fe6f42fb"
checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"
dependencies = [
"lock_api",
"parking_lot_core",
Expand Down Expand Up @@ -732,9 +732,9 @@ dependencies = [

[[package]]
name = "proc-macro2"
version = "1.0.83"
version = "1.0.84"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b33eb56c327dec362a9e55b3ad14f9d2f0904fb5a5b03b513ab5465399e9f43"
checksum = "ec96c6a92621310b51366f1e28d05ef11489516e93be030060e5fc12024a49d6"
dependencies = [
"unicode-ident",
]
Expand Down Expand Up @@ -908,22 +908,22 @@ dependencies = [

[[package]]
name = "serde"
version = "1.0.202"
version = "1.0.203"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "226b61a0d411b2ba5ff6d7f73a476ac4f8bb900373459cd00fab8512828ba395"
checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094"
dependencies = [
"serde_derive",
]

[[package]]
name = "serde_derive"
version = "1.0.202"
version = "1.0.203"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6048858004bcff69094cd972ed40a32500f153bd3be9f716b2eed2e8217c4838"
checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.65",
"syn 2.0.66",
]

[[package]]
Expand Down Expand Up @@ -1029,7 +1029,7 @@ dependencies = [
"proc-macro2",
"quote",
"rustversion",
"syn 2.0.65",
"syn 2.0.66",
]

[[package]]
Expand All @@ -1044,9 +1044,9 @@ dependencies = [

[[package]]
name = "syn"
version = "2.0.65"
version = "2.0.66"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2863d96a84c6439701d7a38f9de935ec562c8832cc55d1dde0f513b52fad106"
checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5"
dependencies = [
"proc-macro2",
"quote",
Expand Down Expand Up @@ -1082,7 +1082,7 @@ checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.65",
"syn 2.0.66",
]

[[package]]
Expand Down Expand Up @@ -1148,7 +1148,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.65",
"syn 2.0.66",
]

[[package]]
Expand Down Expand Up @@ -1413,5 +1413,5 @@ checksum = "15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.65",
"syn 2.0.66",
]
3 changes: 2 additions & 1 deletion cprover_bindings/src/goto_program/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,7 @@ impl Expr {
/// <https://github.com/rust-lang/rfcs/blob/master/text/1199-simd-infrastructure.md#comparisons>).
/// The signedness doesn't matter, as the result for each element is
/// either "all ones" (true) or "all zeros" (false).
///
/// For example, one can use `simd_eq` on two `f64x4` vectors and assign the
/// result to a `u64x4` vector. But it's not possible to assign it to: (1) a
/// `u64x2` because they don't have the same length; or (2) another `f64x4`
Expand Down Expand Up @@ -1665,7 +1666,7 @@ impl Expr {
continue;
}
let name = field.name();
exprs.insert(name, self.clone().member(&name.to_string(), symbol_table));
exprs.insert(name, self.clone().member(name.to_string(), symbol_table));
}
}
}
Expand Down
8 changes: 3 additions & 5 deletions cprover_bindings/src/irep/goto_binary_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,9 @@ pub fn read_goto_binary_file(filename: &Path) -> io::Result<()> {
/// [NumberedIrep] from its unique number.
///
/// In practice:
/// - the forward directon from [IrepKey] to unique numbers is
/// implemented using a `HashMap<IrepKey,usize>`
/// - the inverse direction from unique numbers to [NumberedIrep] is implemented
/// using a `Vec<NumberedIrep>` called the `index` that stores [NumberedIrep]
/// under their unique number.
/// - the forward directon from [IrepKey] to unique numbers is implemented using a `HashMap<IrepKey,usize>`
/// - the inverse direction from unique numbers to [NumberedIrep] is implemented usign a `Vec<NumberedIrep>`
/// called the `index` that stores [NumberedIrep] under their unique number.
///
/// Earlier we said that an [NumberedIrep] is conceptually a pair formed of
/// an [IrepKey] and its unique number. It is represented using only
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl<'tcx> GotocCtx<'tcx> {
let body = self.transformer.body(self.tcx, instance);
self.set_current_fn(instance, &body);
debug!(krate=?instance.def.krate(), is_std=self.current_fn().is_std(), "declare_function");
self.ensure(&self.symbol_name_stable(instance), |ctx, fname| {
self.ensure(self.symbol_name_stable(instance), |ctx, fname| {
Symbol::function(
fname,
ctx.fn_typ(instance, &body),
Expand Down
11 changes: 7 additions & 4 deletions kani-compiler/src/codegen_cprover_gotoc/codegen/intrinsic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,7 @@ impl<'tcx> GotocCtx<'tcx> {
/// its primary argument and returns a tuple that contains:
/// * the previous value
/// * a boolean value indicating whether the operation was successful or not
///
/// In a sequential context, the update is always sucessful so we assume the
/// second value to be true.
/// -------------------------
Expand Down Expand Up @@ -955,9 +956,10 @@ impl<'tcx> GotocCtx<'tcx> {
/// * Both `src`/`dst` must be valid for reads/writes of `count *
/// size_of::<T>()` bytes (done by calls to `memmove`)
/// * (Exclusive to nonoverlapping copy) The region of memory beginning
/// at `src` with a size of `count * size_of::<T>()` bytes must *not*
/// overlap with the region of memory beginning at `dst` with the same
/// size.
/// at `src` with a size of `count * size_of::<T>()` bytes must *not*
/// overlap with the region of memory beginning at `dst` with the same
/// size.
///
/// In addition, we check that computing `count` in bytes (i.e., the third
/// argument of the copy built-in call) would not overflow.
pub fn codegen_copy(
Expand Down Expand Up @@ -1834,7 +1836,7 @@ impl<'tcx> GotocCtx<'tcx> {
///
/// TODO: Add a check for the condition:
/// * `src` must point to a properly initialized value of type `T`
/// See <https://github.com/model-checking/kani/issues/920> for more details
/// See <https://github.com/model-checking/kani/issues/920> for more details
fn codegen_volatile_load(
&mut self,
mut fargs: Vec<Expr>,
Expand Down Expand Up @@ -1894,6 +1896,7 @@ impl<'tcx> GotocCtx<'tcx> {
/// Undefined behavior if any of these conditions are violated:
/// * `dst` must be valid for writes (done by memset writable check)
/// * `dst` must be properly aligned (done by `align_check` below)
///
/// In addition, we check that computing `bytes` (i.e., the third argument
/// for the `memset` call) would not overflow
fn codegen_write_bytes(
Expand Down
2 changes: 1 addition & 1 deletion kani-compiler/src/codegen_cprover_gotoc/codegen/operand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ impl<'tcx> GotocCtx<'tcx> {

/// Generate a goto expression for a pointer to a static or thread-local variable.
fn codegen_instance_pointer(&mut self, instance: Instance, is_thread_local: bool) -> Expr {
let sym = self.ensure(&instance.mangled_name(), |ctx, name| {
let sym = self.ensure(instance.mangled_name(), |ctx, name| {
// Rust has a notion of "extern static" variables. These are in an "extern" block,
// and so aren't initialized in the current codegen unit. For example (from std):
// extern "C" {
Expand Down
5 changes: 3 additions & 2 deletions kani-compiler/src/codegen_cprover_gotoc/codegen/place.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,9 @@ impl<'tcx> GotocCtx<'tcx> {
/// assert!(v.0 == [1, 2]); // refers to the entire array
/// }
/// ```
/// * Note that projection inside SIMD structs may eventually become illegal.
/// See <https://github.com/rust-lang/stdarch/pull/1422#discussion_r1176415609> thread.
///
/// Note that projection inside SIMD structs may eventually become illegal.
/// See thread <https://github.com/rust-lang/stdarch/pull/1422#discussion_r1176415609>.
///
/// Since the goto representation for both is the same, we use the expected type to decide
/// what to return.
Expand Down
4 changes: 2 additions & 2 deletions kani-compiler/src/codegen_cprover_gotoc/codegen/typ.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl TypeExt for Type {
&& components.iter().any(|x| x.name() == "vtable" && x.typ().is_pointer())
}
Type::StructTag(tag) => {
st.lookup(&tag.to_string()).unwrap().typ.is_rust_trait_fat_ptr(st)
st.lookup(tag.to_string()).unwrap().typ.is_rust_trait_fat_ptr(st)
}
_ => false,
}
Expand Down Expand Up @@ -1140,7 +1140,7 @@ impl<'tcx> GotocCtx<'tcx> {
/// Mapping enums to CBMC types is rather complicated. There are a few cases to consider:
/// 1. When there is only 0 or 1 variant, this is straightforward as the code shows
/// 2. When there are more variants, rust might decides to apply the typical encoding which
/// regard enums as tagged union, or an optimized form, called niche encoding.
/// regard enums as tagged union, or an optimized form, called niche encoding.
///
/// The direct encoding is straightforward. Enums are just mapped to C as a struct of union of structs.
/// e.g.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
//! This file is for defining the data-structure itself.
//! 1. Defines `GotocCtx<'tcx>`
//! 2. Provides constructors, getters and setters for the context.
//!
//! Any MIR specific functionality (e.g. codegen etc) should live in specialized files that use
//! this structure as input.
use super::current_fn::CurrentFnCtx;
Expand Down
7 changes: 4 additions & 3 deletions kani-compiler/src/kani_compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ struct CrateInfo {
/// compilation. The crate metadata is stored here (even if no codegen was actually performed).
/// - [CompilationStage::CompilationSkipped] no compilation was actually performed.
/// No work needs to be done.
/// - Note: In a scenario where the compilation fails, the compiler will exit immediately,
/// independent on the stage. Any artifact produced shouldn't be used.
/// I.e.:
///
/// Note: In a scenario where the compilation fails, the compiler will exit immediately,
/// independent on the stage. Any artifact produced shouldn't be used. I.e.:
///
/// ```dot
/// graph CompilationStage {
/// Init -> {CodegenNoStubs, CompilationSkipped}
Expand Down
5 changes: 3 additions & 2 deletions kani-compiler/src/kani_middle/reachability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ impl<'a, 'tcx> MonoItemsFnCollector<'a, 'tcx> {
/// 1. Every function / method / closures that may be directly invoked.
/// 2. Every function / method / closures that may have their address taken.
/// 3. Every method that compose the impl of a trait for a given type when there's a conversion
/// from the type to the trait.
/// from the type to the trait.
/// - I.e.: If we visit the following code:
/// ```
/// let var = MyType::new();
Expand All @@ -313,7 +313,8 @@ impl<'a, 'tcx> MonoItemsFnCollector<'a, 'tcx> {
/// 4. Every Static variable that is referenced in the function or constant used in the function.
/// 5. Drop glue.
/// 6. Static Initialization
/// This code has been mostly taken from `rustc_monomorphize::collector::MirNeighborCollector`.
///
/// Remark: This code has been mostly taken from `rustc_monomorphize::collector::MirNeighborCollector`.
impl<'a, 'tcx> MirVisitor for MonoItemsFnCollector<'a, 'tcx> {
/// Collect the following:
/// - Trait implementations when casting from concrete to dyn Trait.
Expand Down
5 changes: 4 additions & 1 deletion kani-driver/src/args_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@ fn cargo_locate_project(input_args: &[OsString]) -> Result<PathBuf> {
/// We currently support the following entries:
/// - flags: Flags that get directly passed to Kani.
/// - unstable: Unstable features (it will be passed using `-Z` flag).
///
/// The tables supported are:
/// "workspace.metadata.kani", "package.metadata.kani", "kani"
/// - "workspace.metadata.kani"
/// - "package.metadata.kani"
/// - "kani"
fn toml_to_args(tomldata: &str) -> Result<(Vec<OsString>, Vec<OsString>)> {
let config = tomldata.parse::<Value>()?;
// To make testing easier, our function contract is to produce a stable ordering of flags for a given input.
Expand Down
13 changes: 8 additions & 5 deletions kani-driver/src/call_cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl KaniSession {
let mut cmd = setup_cargo_command()?;
cmd.args(&cargo_args)
.args(vec!["-p", &package.name])
.args(&verification_target.to_args())
.args(verification_target.to_args())
.args(&pkg_args)
.env("RUSTC", &self.kani_compiler)
// Use CARGO_ENCODED_RUSTFLAGS instead of RUSTFLAGS is preferred. See
Expand Down Expand Up @@ -315,13 +315,16 @@ fn validate_package_names(package_names: &[String], packages: &[Package]) -> Res
}

/// Extract the packages that should be verified.
/// If `--package <pkg>` is given, return the list of packages selected.
/// If `--exclude <pkg>` is given, return the list of packages not excluded.
/// If `--workspace` is given, return the list of workspace members.
/// If no argument provided, return the root package if there's one or all members.
///
/// The result is build following these rules:
/// - If `--package <pkg>` is given, return the list of packages selected.
/// - If `--exclude <pkg>` is given, return the list of packages not excluded.
/// - If `--workspace` is given, return the list of workspace members.
/// - If no argument provided, return the root package if there's one or all members.
/// - I.e.: Do whatever cargo does when there's no `default_members`.
/// - This is because `default_members` is not available in cargo metadata.
/// See <https://github.com/rust-lang/cargo/issues/8033>.
///
/// In addition, if either `--package <pkg>` or `--exclude <pkg>` is given,
/// validate that `<pkg>` is a package name in the workspace, or return an error
/// otherwise.
Expand Down
4 changes: 3 additions & 1 deletion kani-driver/src/cbmc_property_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@ fn update_properties_with_reach_status(
/// Update the results of `code_coverage` (NOT `cover`) properties.
/// - `SUCCESS` -> `UNCOVERED`
/// - `FAILURE` -> `COVERED`
///
/// Note that these statuses are intermediate statuses that aren't reported to
/// users but rather internally consumed and reported finally as `PARTIAL`, `FULL`
/// or `NONE` based on aggregated line coverage results.
Expand All @@ -720,9 +721,10 @@ fn update_results_of_code_covererage_checks(mut properties: Vec<Property>) -> Ve

/// Update the results of cover properties.
/// We encode cover(cond) as assert(!cond), so if the assertion
/// fails, then the cover property is satisfied and vice versa.
/// fails, then the cover property is satisfied and vice versa:
/// - SUCCESS -> UNSATISFIABLE
/// - FAILURE -> SATISFIED
///
/// Note that if the cover property was unreachable, its status at this point
/// will be `CheckStatus::Unreachable` and not `CheckStatus::Success` since
/// `update_properties_with_reach_status` is called beforehand
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# SPDX-License-Identifier: Apache-2.0 OR MIT

[toolchain]
channel = "nightly-2024-05-17"
channel = "nightly-2024-05-23"
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]
1 change: 1 addition & 0 deletions scripts/setup/ubuntu/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ DEPS=(
gpg-agent
jq
libssl-dev
lld
lsb-release
make
ninja-build
Expand Down
2 changes: 1 addition & 1 deletion tests/perf/s2n-quic
Submodule s2n-quic updated 49 files
+1 −1 .github/workflows/book.yml
+16 −1 quic/s2n-quic-core/src/crypto/tls/testing.rs
+10 −4 quic/s2n-quic-core/src/dc.rs
+4 −7 quic/s2n-quic-core/src/dc/disabled.rs
+51 −0 quic/s2n-quic-core/src/dc/testing.rs
+8 −15 quic/s2n-quic-core/src/dc/traits.rs
+118 −0 quic/s2n-quic-core/src/event/generated.rs
+1 −0 quic/s2n-quic-core/src/lib.rs
+59 −0 quic/s2n-quic-core/src/slice.rs
+158 −91 quic/s2n-quic-core/src/state.rs
+20 −0 quic/s2n-quic-core/src/state/snapshots/s2n_quic_core__state__tests__lr_dot_test.snap
+86 −0 quic/s2n-quic-core/src/state/snapshots/s2n_quic_core__state__tests__lr_snapshots.snap
+35 −0 quic/s2n-quic-core/src/state/snapshots/s2n_quic_core__state__tests__microwave_dot_test.snap
+208 −0 quic/s2n-quic-core/src/state/snapshots/s2n_quic_core__state__tests__microwave_snapshots.snap
+97 −0 quic/s2n-quic-core/src/state/tests.rs
+1 −25 quic/s2n-quic-core/src/stream/state/recv.rs
+1 −27 quic/s2n-quic-core/src/stream/state/send.rs
+1 −0 quic/s2n-quic-core/src/stream/state/snapshots/s2n_quic_core__stream__state__recv__tests__dot_test.snap
+98 −206 quic/s2n-quic-core/src/stream/state/snapshots/s2n_quic_core__stream__state__recv__tests__snapshots.snap
+1 −0 quic/s2n-quic-core/src/stream/state/snapshots/s2n_quic_core__stream__state__send__tests__dot_test.snap
+132 −286 quic/s2n-quic-core/src/stream/state/snapshots/s2n_quic_core__stream__state__send__tests__snapshots.snap
+6 −0 quic/s2n-quic-events/events/common.rs
+6 −0 quic/s2n-quic-events/events/connection.rs
+1 −1 quic/s2n-quic-h3/Cargo.toml
+6 −0 quic/s2n-quic-transport/src/dc.rs
+239 −0 quic/s2n-quic-transport/src/dc/manager.rs
+5 −0 ...transport/src/dc/manager/snapshots/quic__s2n-quic-transport__src__dc__manager__tests__events__disabled.snap
+6 −0 ...quic-transport/src/dc/manager/snapshots/quic__s2n-quic-transport__src__dc__manager__tests__events__new.snap
+6 −0 ...c/dc/manager/snapshots/quic__s2n-quic-transport__src__dc__manager__tests__events__on_packet_ack_client.snap
+7 −0 ...c/dc/manager/snapshots/quic__s2n-quic-transport__src__dc__manager__tests__events__on_packet_ack_server.snap
+6 −0 ...ort/src/dc/manager/snapshots/quic__s2n-quic-transport__src__dc__manager__tests__events__on_packet_loss.snap
+8 −0 .../dc/manager/snapshots/quic__s2n-quic-transport__src__dc__manager__tests__events__on_path_secrets_ready.snap
+7 −0 ...ts/quic__s2n-quic-transport__src__dc__manager__tests__events__on_peer_dc_stateless_reset_tokens_client.snap
+6 −0 ...ts/quic__s2n-quic-transport__src__dc__manager__tests__events__on_peer_dc_stateless_reset_tokens_server.snap
+18 −0 quic/s2n-quic-transport/src/dc/manager/snapshots/s2n_quic_transport__dc__manager__tests__dot_test.snap
+110 −0 quic/s2n-quic-transport/src/dc/manager/snapshots/s2n_quic_transport__dc__manager__tests__snapshots.snap
+272 −0 quic/s2n-quic-transport/src/dc/manager/tests.rs
+10 −3 quic/s2n-quic-transport/src/endpoint/mod.rs
+1 −0 quic/s2n-quic-transport/src/lib.rs
+32 −4 quic/s2n-quic-transport/src/space/application.rs
+15 −7 quic/s2n-quic-transport/src/space/mod.rs
+78 −13 quic/s2n-quic-transport/src/space/session_context.rs
+12 −2 quic/s2n-quic-transport/src/sync/flag.rs
+9 −1 quic/s2n-quic-transport/src/transmission/application.rs
+1 −1 quic/s2n-quic/src/client/builder.rs
+19 −2 quic/s2n-quic/src/lib.rs
+1 −1 quic/s2n-quic/src/server/builder.rs
+2 −0 quic/s2n-quic/src/tests.rs
+224 −0 quic/s2n-quic/src/tests/dc.rs
2 changes: 2 additions & 0 deletions tests/script-based-pre/build-rs-conditional/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ edition = "2021"

[dependencies]

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani)'] }
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
name = "sample_crate"
version = "0.1.0"
edition = "2021"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani)'] }
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
name = "sample_crate"
version = "0.1.0"
edition = "2021"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani)'] }
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ doctest = false
name = "bar"
doctest = false

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani)'] }
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ concrete-playback = "inplace"

[package.metadata.kani.unstable]
concrete-playback = true

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani)'] }
Loading
Loading