Skip to content

Commit 54786ad

Browse files
authored
Upgrade toolchain to nightly-2024-03-15 (#3084)
Note that with this upgrade Kani can no longer automatically detect loop bounds when using range. For more details, see: #3088
1 parent f54b956 commit 54786ad

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

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

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

44
#[kani::proof]
5+
#[kani::unwind(4)]
56
// ANCHOR: success_example
67
fn success_example() {
78
let mut sum = 0;

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
[toolchain]
5-
channel = "nightly-2024-03-14"
5+
channel = "nightly-2024-03-15"
66
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]

tests/coverage/unreachable/abort/main.rs

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

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

tests/expected/abort/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use std::process;
77

88
#[kani::proof]
9+
#[kani::unwind(5)]
910
fn main() {
1011
for i in 0..4 {
1112
if i == 1 {

tests/expected/iterator/main.rs

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

44
#[kani::proof]
5+
#[kani::unwind(4)]
56
fn main() {
67
let mut z = 1;
78
for i in 1..4 {

tests/kani/Coroutines/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use std::ops::{Coroutine, CoroutineState};
99
use std::pin::Pin;
1010

1111
#[kani::proof]
12+
#[kani::unwind(3)]
1213
fn main() {
1314
let mut add_one = |mut resume: u8| {
1415
loop {

0 commit comments

Comments
 (0)