Skip to content

Commit e3cb7fb

Browse files
committed
Upgrade Rust toolchain to 2025-06-20
Relevant upstream PR: rust-lang/rust#141061 (Change __rust_no_alloc_shim_is_unstable to be a function) Resolves: model-checking#4176
1 parent 96eb502 commit e3cb7fb

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ lazy_static! {
3535
"__rust_alloc_zeroed".into(),
3636
"__rust_dealloc".into(),
3737
"__rust_realloc".into(),
38+
"__rust_no_alloc_shim_is_unstable_v2".into(),
3839
])
3940
};
4041
}

library/kani/kani_lib.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,9 @@ uint8_t *__rust_realloc(uint8_t *ptr, size_t old_size, size_t align, size_t new_
117117

118118
return result;
119119
}
120+
121+
// Function required by the linker, see https://github.com/rust-lang/rust/pull/141061
122+
struct Unit __rust_no_alloc_shim_is_unstable_v2(void)
123+
{
124+
return VoidUnit;
125+
}

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

0 commit comments

Comments
 (0)