Skip to content

Commit e0141cf

Browse files
authored
Remove unwind attributes that are no longer needed with CBMC v6 (#3403)
CBMC v6 includes diffblue/cbmc#8247, which fixes the need for unwind attributes that were newly found to be necessary when upgrading to nightly-2024-03-15 (#3084). Resolves: #3088
1 parent d6d1ebf commit e0141cf

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed

docs/src/getting-started/verification-results/src/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
#[kani::proof]
5-
#[kani::unwind(4)]
65
// ANCHOR: success_example
76
fn success_example() {
87
let mut sum = 0;

tests/coverage/unreachable/abort/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
use std::process;
77

8-
#[cfg_attr(kani, kani::proof, kani::unwind(5))]
8+
#[kani::proof]
99
fn main() {
1010
for i in 0..4 {
1111
if i == 1 {

tests/expected/abort/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use std::process;
77

88
#[kani::proof]
9-
#[kani::unwind(5)]
109
fn main() {
1110
for i in 0..4 {
1211
if i == 1 {

tests/expected/iterator/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
#[kani::proof]
5-
#[kani::unwind(4)]
65
fn main() {
76
let mut z = 1;
87
for i in 1..4 {

tests/kani/Coroutines/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use std::ops::{Coroutine, CoroutineState};
1010
use std::pin::Pin;
1111

1212
#[kani::proof]
13-
#[kani::unwind(3)]
1413
fn main() {
1514
let mut add_one = #[coroutine]
1615
|mut resume: u8| {

0 commit comments

Comments
 (0)