Skip to content

Commit 6b9b2dd

Browse files
committed
trait_item_def_id -> trait_item_def_id()
1 parent 3578045 commit 6b9b2dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/flux-infer/src/projections.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl<'a, 'infcx, 'genv, 'tcx> Normalizer<'a, 'infcx, 'genv, 'tcx> {
223223
let assoc_type_id = tcx
224224
.associated_items(impl_def_id)
225225
.in_definition_order()
226-
.find(|item| item.trait_item_def_id == Some(obligation.def_id))
226+
.find(|item| item.trait_item_def_id() == Some(obligation.def_id))
227227
.map(|item| item.def_id)
228228
.ok_or_else(|| {
229229
query_bug!("no associated type for {obligation:?} in impl {impl_def_id:?}")

crates/flux-refineck/src/checker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ fn find_trait_item(
400400
&& let Some(impl_trait_ref) = genv.impl_trait_ref(impl_id)?
401401
{
402402
let impl_trait_ref = impl_trait_ref.instantiate_identity();
403-
let trait_item_id = tcx.associated_item(def_id).trait_item_def_id.unwrap();
403+
let trait_item_id = tcx.associated_item(def_id).trait_item_def_id().unwrap();
404404
return Ok(Some((impl_trait_ref, trait_item_id)));
405405
}
406406
Ok(None)

0 commit comments

Comments
 (0)