Skip to content

Commit e5f548c

Browse files
author
Carolyn Zech
committed
update to 6/7
1 parent 3a06fe9 commit e5f548c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

kani-compiler/src/kani_middle/coercion.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use rustc_middle::ty::TraitRef;
1919
use rustc_middle::ty::adjustment::CustomCoerceUnsized;
2020
use rustc_middle::ty::{PseudoCanonicalInput, Ty, TyCtxt, TypingEnv};
2121
use rustc_smir::rustc_internal;
22+
use rustc_span::DUMMY_SP;
2223
use stable_mir::Symbol;
2324
use stable_mir::ty::{RigidTy, Ty as TyStable, TyKind};
2425
use tracing::trace;
@@ -245,7 +246,7 @@ fn custom_coerce_unsize_info<'tcx>(
245246
source_ty: Ty<'tcx>,
246247
target_ty: Ty<'tcx>,
247248
) -> CustomCoerceUnsized {
248-
let def_id = tcx.require_lang_item(LangItem::CoerceUnsized, None);
249+
let def_id = tcx.require_lang_item(LangItem::CoerceUnsized, DUMMY_SP);
249250

250251
let trait_ref = TraitRef::new(tcx, def_id, tcx.mk_args_trait(source_ty, [target_ty.into()]));
251252

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

0 commit comments

Comments
 (0)