Skip to content

Commit 092dfb7

Browse files
committed
Upgrade toolchain to nightly-2025-03-07
Changes required due to - rust-lang/rust#138026: Make CrateItem::body() function return an option Resolves: model-checking#3930
1 parent b032310 commit 092dfb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kani-compiler/src/kani_middle/stubbing/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub fn validate_stub_const(tcx: TyCtxt, instance: Instance) -> bool {
130130
let item = CrateItem::try_from(instance).unwrap();
131131
let internal_instance = rustc_internal::internal(tcx, instance);
132132
let mut checker = StubConstChecker::new(tcx, internal_instance, item);
133-
checker.visit_body(&item.body());
133+
checker.visit_body(&item.expect_body());
134134
checker.is_valid()
135135
}
136136

rust-toolchain.toml

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

0 commit comments

Comments
 (0)