Skip to content

Commit 437ed4f

Browse files
author
Carolyn Zech
committed
Upgrade toolchain to 2/6
- contract changes, c.f. rust-lang/rust@bcb8565
1 parent 318a4e6 commit 437ed4f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

kani-compiler/src/codegen_cprover_gotoc/codegen/rvalue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ impl GotocCtx<'_> {
851851
.bytes(),
852852
Type::size_t(),
853853
),
854-
NullOp::UbChecks => Expr::c_false(),
854+
NullOp::ContractChecks | NullOp::UbChecks => Expr::c_false(),
855855
}
856856
}
857857
Rvalue::ShallowInitBox(ref operand, content_ty) => {

kani-compiler/src/kani_middle/transform/internal_mir.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ impl RustcInternalMir for NullOp {
215215
),
216216
),
217217
NullOp::UbChecks => rustc_middle::mir::NullOp::UbChecks,
218+
NullOp::ContractChecks => rustc_middle::mir::NullOp::ContractChecks,
218219
}
219220
}
220221
}

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-2025-02-05"
5+
channel = "nightly-2025-02-06"
66
components = ["llvm-tools", "rustc-dev", "rust-src", "rustfmt"]

0 commit comments

Comments
 (0)