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_ty_utils/src | |
| parent | 0d7abc8df083296c29e0fb816c1c4b10e4cf6577 (diff) | |
| download | rust-172af038a733020ec487d57a593ddb27ce16c325.tar.gz rust-172af038a733020ec487d57a593ddb27ce16c325.zip | |
Rename trait_of_item -> trait_of_assoc
Diffstat (limited to 'compiler/rustc_ty_utils/src')
| -rw-r--r-- | compiler/rustc_ty_utils/src/instance.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/instance.rs b/compiler/rustc_ty_utils/src/instance.rs index 166e8f19342..e6c3568620b 100644 --- a/compiler/rustc_ty_utils/src/instance.rs +++ b/compiler/rustc_ty_utils/src/instance.rs @@ -21,7 +21,7 @@ fn resolve_instance_raw<'tcx>( ) -> Result<Option<Instance<'tcx>>, ErrorGuaranteed> { let PseudoCanonicalInput { typing_env, value: (def_id, args) } = key; - let result = if let Some(trait_def_id) = tcx.trait_of_item(def_id) { + let result = if let Some(trait_def_id) = tcx.trait_of_assoc(def_id) { debug!(" => associated item, attempting to find impl in typing_env {:#?}", typing_env); resolve_associated_item( tcx, |
