about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/impl_wf_check.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-04-11 16:50:20 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-04-15 08:06:59 +1000
commitb26f3d4347ca589305a19d10c6e651b071849716 (patch)
treea5e7abe985cbe691492dda7810e8f04f16c609df /compiler/rustc_hir_analysis/src/impl_wf_check.rs
parentce2aa97cd647bdfcb5859489d93526622bb388a0 (diff)
downloadrust-b26f3d4347ca589305a19d10c6e651b071849716.tar.gz
rust-b26f3d4347ca589305a19d10c6e651b071849716.zip
Move `opt_rpitit_info` field to `hir::AssocKind::Type`.
From `hir::AssocItem`.
Diffstat (limited to 'compiler/rustc_hir_analysis/src/impl_wf_check.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/impl_wf_check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/impl_wf_check.rs b/compiler/rustc_hir_analysis/src/impl_wf_check.rs
index 1ab36ce1dcb..127ca846b9f 100644
--- a/compiler/rustc_hir_analysis/src/impl_wf_check.rs
+++ b/compiler/rustc_hir_analysis/src/impl_wf_check.rs
@@ -112,7 +112,7 @@ pub(crate) fn enforce_impl_lifetime_params_are_constrained(
         .flat_map(|def_id| {
             let item = tcx.associated_item(def_id);
             match item.kind {
-                ty::AssocKind::Type => {
+                ty::AssocKind::Type { .. } => {
                     if item.defaultness(tcx).has_value() {
                         cgp::parameters_for(tcx, tcx.type_of(def_id).instantiate_identity(), true)
                     } else {