diff options
| author | Michael Goulet <michael@errs.io> | 2025-07-12 19:31:15 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-07-12 19:31:15 +0000 |
| commit | 736bfa12de73155633261ca6682b9d5e72d32c6d (patch) | |
| tree | 62418db9b52b125a3af1b7058fe814d1b1fae1b1 /compiler/rustc_hir_analysis/src/check/wfcheck.rs | |
| parent | 47e15d90e13b5238117971298a3573ddebd87a40 (diff) | |
| download | rust-736bfa12de73155633261ca6682b9d5e72d32c6d.tar.gz rust-736bfa12de73155633261ca6682b9d5e72d32c6d.zip | |
Clean up implementation of RPITIT assoc item lowering
Diffstat (limited to 'compiler/rustc_hir_analysis/src/check/wfcheck.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/wfcheck.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/wfcheck.rs b/compiler/rustc_hir_analysis/src/check/wfcheck.rs index 3d3fdd899d3..607028f4d9a 100644 --- a/compiler/rustc_hir_analysis/src/check/wfcheck.rs +++ b/compiler/rustc_hir_analysis/src/check/wfcheck.rs @@ -20,7 +20,7 @@ use rustc_middle::ty::trait_def::TraitSpecializationKind; use rustc_middle::ty::{ self, AdtKind, GenericArgKind, GenericArgs, GenericParamDefKind, Ty, TyCtxt, TypeFlags, TypeFoldable, TypeSuperVisitable, TypeVisitable, TypeVisitableExt, TypeVisitor, TypingMode, - Upcast, associated_types_for_impl_traits_in_associated_fn, + Upcast, }; use rustc_middle::{bug, span_bug}; use rustc_session::parse::feature_err; @@ -327,7 +327,7 @@ pub(crate) fn check_trait_item<'tcx>( if matches!(tcx.def_kind(def_id), DefKind::AssocFn) { for &assoc_ty_def_id in - associated_types_for_impl_traits_in_associated_fn(tcx, def_id.to_def_id()) + tcx.associated_types_for_impl_traits_in_associated_fn(def_id.to_def_id()) { res = res.and(check_associated_item(tcx, assoc_ty_def_id.expect_local())); } |
