Rename trait_of_item -> trait_of_assoc

This commit is contained in:
Cameron Steffen
2025-07-24 19:05:31 -05:00
parent 0d7abc8df0
commit 172af038a7
37 changed files with 47 additions and 47 deletions

View File

@@ -650,7 +650,7 @@ fn characteristic_def_id_of_mono_item<'tcx>(
// its self-type. If the self-type does not provide a characteristic
// DefId, we use the location of the impl after all.
if tcx.trait_of_item(def_id).is_some() {
if tcx.trait_of_assoc(def_id).is_some() {
let self_ty = instance.args.type_at(0);
// This is a default implementation of a trait method.
return characteristic_def_id_of_type(self_ty).or(Some(def_id));