diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2025-07-24 19:05:31 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2025-07-28 09:53:50 -0500 |
| commit | 172af038a733020ec487d57a593ddb27ce16c325 (patch) | |
| tree | a754f3637b3b51556b5c4de9f0eb801c3b2921d7 /compiler/rustc_lint/src/noop_method_call.rs | |
| parent | 0d7abc8df083296c29e0fb816c1c4b10e4cf6577 (diff) | |
| download | rust-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.rs | 2 |
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 }; |
