Skip to content

Commit

Permalink
Upgrade toolchain and fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval committed Oct 17, 2023
1 parent c89a7e7 commit 223389c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
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-2023-10-10"
channel = "nightly-2023-10-16"
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]
9 changes: 5 additions & 4 deletions tests/coverage/unreachable/contradiction/expected
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
coverage/unreachable/contradiction/main.rs, 5, FULL
coverage/unreachable/contradiction/main.rs, 6, FULL
coverage/unreachable/contradiction/main.rs, 7, PARTIAL
coverage/unreachable/contradiction/main.rs, 8, NONE
coverage/unreachable/contradiction/main.rs, 11, FULL
coverage/unreachable/contradiction/main.rs, 13, FULL
coverage/unreachable/contradiction/main.rs, 7, FULL
coverage/unreachable/contradiction/main.rs, 8, PARTIAL
coverage/unreachable/contradiction/main.rs, 9, NONE
coverage/unreachable/contradiction/main.rs, 12, FULL
coverage/unreachable/contradiction/main.rs, 14, FULL
3 changes: 2 additions & 1 deletion tests/coverage/unreachable/contradiction/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
#[kani::proof]
fn contradiction() {
let x: u8 = kani::any();
let mut y: u8 = 0;
if x > 5 {
if x < 2 {
let y = x;
y = x;
}
} else {
assert!(x < 10);
Expand Down

0 comments on commit 223389c

Please sign in to comment.