diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2025-08-05 15:59:44 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2025-09-12 15:14:15 -0500 |
| commit | 88a8bfcaf0398011b621a981483c288d1e3b64e2 (patch) | |
| tree | fad6716666fc9403c734082e8c4168f5305aca62 /compiler/rustc_hir_analysis | |
| parent | 5590e55b03722fb7da2d965478deb4b5d62bf97a (diff) | |
| download | rust-88a8bfcaf0398011b621a981483c288d1e3b64e2.tar.gz rust-88a8bfcaf0398011b621a981483c288d1e3b64e2.zip | |
Introduce hir::ImplItemImplKind
Diffstat (limited to 'compiler/rustc_hir_analysis')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/collect/type_of.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/collect/type_of.rs b/compiler/rustc_hir_analysis/src/collect/type_of.rs index a8af73717cd..8cbf17162e3 100644 --- a/compiler/rustc_hir_analysis/src/collect/type_of.rs +++ b/compiler/rustc_hir_analysis/src/collect/type_of.rs @@ -198,7 +198,7 @@ pub(super) fn type_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::EarlyBinder<'_ } } ImplItemKind::Type(ty) => { - if tcx.impl_trait_ref(tcx.hir_get_parent_item(hir_id)).is_none() { + if let ImplItemImplKind::Inherent { .. } = item.impl_kind { check_feature_inherent_assoc_ty(tcx, item.span); } |
