Skip to content

Commit 24ececc

Browse files
authored
Update nightly toolchain to toolchain-2023-12-15 (#2948)
Related PR: rust-lang/rust#118566 Resolves #2946
1 parent 036eb88 commit 24ececc

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,20 @@ impl<'tcx> GotocCtx<'tcx> {
299299
&self.symbol_table,
300300
)
301301
}
302+
// TODO: Improve this check after we upgrade nightly to 2023-12-18.
303+
TyKind::RigidTy(RigidTy::Adt(def, _)) if def.name().ends_with("::CStr") => {
304+
// TODO: Handle CString
305+
// <https://github.com/model-checking/kani/issues/2549>
306+
let loc = self.codegen_span_option_stable(span);
307+
let typ = self.codegen_ty_stable(ty);
308+
let operation_name = "C string literal";
309+
self.codegen_unimplemented_expr(
310+
&operation_name,
311+
typ,
312+
loc,
313+
"https://github.com/model-checking/kani/issues/2549",
314+
)
315+
}
302316
_ => unreachable!("{inner_ty:?}"),
303317
}
304318
} else if !alloc.provenance.ptrs.is_empty() {

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-2023-12-14"
5+
channel = "nightly-2023-12-15"
66
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]

0 commit comments

Comments
 (0)