Skip to content

Commit f814676

Browse files
committed
fix formatting & cfg(test) failures
1 parent eaab5cf commit f814676

File tree

9 files changed

+23
-4
lines changed

9 files changed

+23
-4
lines changed

kani-compiler/src/kani_middle/codegen_units.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ impl CodegenUnits {
104104
// and these harnesses have no stubs.
105105
units.extend(
106106
automatic_harnesses
107-
.iter()
108-
.map(|(harness, _)| CodegenUnit {
107+
.keys()
108+
.map(|harness| CodegenUnit {
109109
harnesses: vec![*harness],
110110
stubs: HashMap::default(),
111111
})

kani-driver/src/args/autoverify_args.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl ValidateArgs for CargoAutoverifyArgs {
7171
ErrorKind::MissingRequiredArgument,
7272
format!(
7373
"The `autoverify` subcommand is unstable and requires -Z {}",
74-
UnstableFeature::UnstableOptions.to_string()
74+
UnstableFeature::UnstableOptions
7575
),
7676
));
7777
}
@@ -105,7 +105,7 @@ impl ValidateArgs for StandaloneAutoverifyArgs {
105105
ErrorKind::MissingRequiredArgument,
106106
format!(
107107
"The `autoverify` subcommand is unstable and requires -Z {}",
108-
UnstableFeature::UnstableOptions.to_string()
108+
UnstableFeature::UnstableOptions
109109
),
110110
));
111111
}

kani-driver/src/metadata.rs

+1
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ pub mod tests {
228228
goto_file: model_file,
229229
contract: Default::default(),
230230
has_loop_contracts: false,
231+
is_automatically_generated: false,
231232
}
232233
}
233234

tests/script-based-pre/cargo_autoverify_contracts/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright Kani Contributors
2+
# SPDX-License-Identifier: Apache-2.0 OR MIT
3+
14
[package]
25
name = "cargo_autoverify_contracts"
36
version = "0.1.0"

tests/script-based-pre/cargo_autoverify_exclude/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright Kani Contributors
2+
# SPDX-License-Identifier: Apache-2.0 OR MIT
3+
14
[package]
25
name = "cargo_autoverify_include"
36
version = "0.1.0"

tests/script-based-pre/cargo_autoverify_filter/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright Kani Contributors
2+
# SPDX-License-Identifier: Apache-2.0 OR MIT
3+
14
[package]
25
name = "cargo_autoverify_filter"
36
version = "0.1.0"

tests/script-based-pre/cargo_autoverify_harnesses_fail/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright Kani Contributors
2+
# SPDX-License-Identifier: Apache-2.0 OR MIT
3+
14
[package]
25
name = "cargo_autoverify_harnesses_fail"
36
version = "0.1.0"

tests/script-based-pre/cargo_autoverify_include/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright Kani Contributors
2+
# SPDX-License-Identifier: Apache-2.0 OR MIT
3+
14
[package]
25
name = "cargo_autoverify_include"
36
version = "0.1.0"

tests/script-based-pre/cargo_autoverify_loops_fixme/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright Kani Contributors
2+
# SPDX-License-Identifier: Apache-2.0 OR MIT
3+
14
[package]
25
name = "cargo_autoverify_loops_fixme"
36
version = "0.1.0"

0 commit comments

Comments
 (0)