From d5f2260bd37966b76ef6ee9c22d0cdebdcbe97a9 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Mon, 4 Aug 2025 23:07:15 +0000 Subject: Add doc-comment. --- compiler/rustc_hir/src/def.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_hir') diff --git a/compiler/rustc_hir/src/def.rs b/compiler/rustc_hir/src/def.rs index 8774fb4d585..f2567f73d99 100644 --- a/compiler/rustc_hir/src/def.rs +++ b/compiler/rustc_hir/src/def.rs @@ -318,6 +318,7 @@ impl DefKind { ) } + /// Whether the corresponding item has generic parameters, ie. the `generics_of` query works. pub fn has_generics(self) -> bool { match self { DefKind::AnonConst -- cgit 1.4.1-3-g733a5