about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/noop_method_call.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_lint/src/noop_method_call.rs
parent0d7abc8df083296c29e0fb816c1c4b10e4cf6577 (diff)
downloadrust-172af038a733020ec487d57a593ddb27ce16c325.tar.gz
rust-172af038a733020ec487d57a593ddb27ce16c325.zip
Rename trait_of_item -> trait_of_assoc
Diffstat (limited to 'compiler/rustc_lint/src/noop_method_call.rs')
-rw-r--r--compiler/rustc_lint/src/noop_method_call.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/noop_method_call.rs b/compiler/rustc_lint/src/noop_method_call.rs
index b7835e6c36a..24682c4562a 100644
--- a/compiler/rustc_lint/src/noop_method_call.rs
+++ b/compiler/rustc_lint/src/noop_method_call.rs
@@ -84,7 +84,7 @@ impl<'tcx> LateLintPass<'tcx> for NoopMethodCall {
             return;
         };
 
-        let Some(trait_id) = cx.tcx.trait_of_item(did) else { return };
+        let Some(trait_id) = cx.tcx.trait_of_assoc(did) else { return };
 
         let Some(trait_) = cx.tcx.get_diagnostic_name(trait_id) else { return };