Skip to content

Downgrade the toolchain to avoid blocking issue #1830

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

Merged
merged 1 commit into from
Nov 1, 2022
Merged
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
4 changes: 2 additions & 2 deletions 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-2022-10-25"
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]
channel = "nightly-2022-10-24"
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]
4 changes: 2 additions & 2 deletions scripts/kani-regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ KANI_DIR=$SCRIPT_DIR/..
export KANI_FAIL_ON_UNEXPECTED_DESCRIPTION="true"

# Required dependencies
check-cbmc-version.py --major 5 --minor 67
check-cbmc-version.py --major 5 --minor 69
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just running into this (without updating cbmc you get a weird goto-cc failure in the test suite) so glad you snuck this in.

check-cbmc-viewer-version.py --major 3 --minor 5

# Formatting check
Expand Down Expand Up @@ -60,7 +60,7 @@ TESTS=(

if [[ "" != "${KANI_ENABLE_UNSOUND_EXPERIMENTS-}" ]]; then
TESTS+=("unsound_experiments kani")
else
else
TESTS+=("no_unsound_experiments expected")
fi

Expand Down
20 changes: 20 additions & 0 deletions tests/kani/ConstEval/limit.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright Kani Contributors
// SPDX-License-Identifier: Apache-2.0 OR MIT
//
// Ensure that constant propagation can deal with a large number.
// This test used to trigger https://github.com/rust-lang/rust/issues/103814

const LENGTH: usize = 131072;
const CONST: usize = {
let data = [1; LENGTH];
let mut idx = 0;
while idx < data.len() {
idx += data[idx];
}
idx
};

#[kani::proof]
fn check_eval() {
assert_eq!(CONST, LENGTH);
}