about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/partitioning.rs
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2025-07-24 19:05:31 -0500
committerCameron Steffen <cam.steffen94@gmail.com>2025-07-28 09:53:50 -0500
commit172af038a733020ec487d57a593ddb27ce16c325 (patch)
treea754f3637b3b51556b5c4de9f0eb801c3b2921d7 /compiler/rustc_monomorphize/src/partitioning.rs
parent0d7abc8df083296c29e0fb816c1c4b10e4cf6577 (diff)
downloadrust-172af038a733020ec487d57a593ddb27ce16c325.tar.gz
rust-172af038a733020ec487d57a593ddb27ce16c325.zip
Rename trait_of_item -> trait_of_assoc
Diffstat (limited to 'compiler/rustc_monomorphize/src/partitioning.rs')
-rw-r--r--compiler/rustc_monomorphize/src/partitioning.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/partitioning.rs b/compiler/rustc_monomorphize/src/partitioning.rs
index f3e7d582781..9f5807070a7 100644
--- a/compiler/rustc_monomorphize/src/partitioning.rs
+++ b/compiler/rustc_monomorphize/src/partitioning.rs
@@ -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));