diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-01-07 16:39:30 +0000 | 
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-02-04 15:17:31 +0000 | 
| commit | fbcaa9b0a16cb3eed67cc3dc2429574f28dcac17 (patch) | |
| tree | 9675185c09b86dc9689e31d2464e72bff858bd0f /compiler/rustc_hir_analysis/src/collect/generics_of.rs | |
| parent | f0308938ba39bc3377f22f7479654ba32e9c233f (diff) | |
| download | rust-fbcaa9b0a16cb3eed67cc3dc2429574f28dcac17.tar.gz rust-fbcaa9b0a16cb3eed67cc3dc2429574f28dcac17.zip | |
Allow using named consts in pattern types
Diffstat (limited to 'compiler/rustc_hir_analysis/src/collect/generics_of.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/collect/generics_of.rs | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/compiler/rustc_hir_analysis/src/collect/generics_of.rs b/compiler/rustc_hir_analysis/src/collect/generics_of.rs index 2ac8acbd3a4..c0902398a54 100644 --- a/compiler/rustc_hir_analysis/src/collect/generics_of.rs +++ b/compiler/rustc_hir_analysis/src/collect/generics_of.rs @@ -198,6 +198,7 @@ pub(super) fn generics_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Generics { { Some(parent_did) } + Node::TyPat(_) => Some(parent_did), _ => None, } } | 
