Skip to content

Commit 4e54539

Browse files
authored
Upgrade the toolchain to 2025-02-21 (#3899)
Upstream PRs requiring changes: rust-lang/rust#135994 rust-lang/rust#136466 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
1 parent fe0d9d2 commit 4e54539

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
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
@@ -667,7 +667,7 @@ impl GotocCtx<'_> {
667667
assert!(operands.len() == 2);
668668
let typ = self.codegen_ty_stable(res_ty);
669669
let layout = self.layout_of_stable(res_ty);
670-
assert!(layout.ty.is_unsafe_ptr());
670+
assert!(layout.ty.is_raw_ptr());
671671
let data = self.codegen_operand_stable(&operands[0]);
672672
match pointee_ty.kind() {
673673
TyKind::RigidTy(RigidTy::Slice(inner_ty)) => {

kani-compiler/src/kani_middle/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub mod transform;
3737
/// error was found.
3838
pub fn check_crate_items(tcx: TyCtxt, ignore_asm: bool) {
3939
let krate = tcx.crate_name(LOCAL_CRATE);
40-
for item in tcx.hir().items() {
40+
for item in tcx.hir_free_items() {
4141
let def_id = item.owner_id.def_id.to_def_id();
4242
KaniAttributes::for_item(tcx, def_id).check_attributes();
4343
if tcx.def_kind(def_id) == DefKind::GlobalAsm {

kani-compiler/src/kani_middle/resolve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ fn resolve_relative(tcx: TyCtxt, current_module: LocalModDefId, name: &str) -> R
430430
debug!(?name, ?current_module, "resolve_relative");
431431

432432
let mut glob_imports = vec![];
433-
let result = tcx.hir().module_items(current_module).find_map(|item_id| {
434-
let item = tcx.hir().item(item_id);
433+
let result = tcx.hir_module_free_items(current_module).find_map(|item_id| {
434+
let item = tcx.hir_item(item_id);
435435
if item.ident.as_str() == name {
436436
match item.kind {
437437
ItemKind::Use(use_path, UseKind::Single) => use_path.res[0].opt_def_id(),

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

0 commit comments

Comments
 (0)