Skip to content

Commit

Permalink
Update nightly toolchain to toolchain-2023-12-15 (rust-lang#2948)
Browse files Browse the repository at this point in the history
Related PR: rust-lang#118566

Resolves rust-lang#2946
  • Loading branch information
celinval authored Dec 15, 2023
1 parent 036eb88 commit 24ececc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions kani-compiler/src/codegen_cprover_gotoc/codegen/operand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,20 @@ impl<'tcx> GotocCtx<'tcx> {
&self.symbol_table,
)
}
// TODO: Improve this check after we upgrade nightly to 2023-12-18.
TyKind::RigidTy(RigidTy::Adt(def, _)) if def.name().ends_with("::CStr") => {
// TODO: Handle CString
// <https://github.com/model-checking/kani/issues/2549>
let loc = self.codegen_span_option_stable(span);
let typ = self.codegen_ty_stable(ty);
let operation_name = "C string literal";
self.codegen_unimplemented_expr(
&operation_name,
typ,
loc,
"https://github.com/model-checking/kani/issues/2549",
)
}
_ => unreachable!("{inner_ty:?}"),
}
} else if !alloc.provenance.ptrs.is_empty() {
Expand Down
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-12-14"
channel = "nightly-2023-12-15"
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]

0 comments on commit 24ececc

Please sign in to comment.