about summary refs log tree commit diff
path: root/compiler/rustc_hir/src/def.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2025-08-04 23:07:15 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2025-08-04 23:07:15 +0000
commitd5f2260bd37966b76ef6ee9c22d0cdebdcbe97a9 (patch)
tree53ecbd3df913a52d751967676d8c5943c9fedf05 /compiler/rustc_hir/src/def.rs
parent36f2045a930a3367963881db4f423d7de33b46a5 (diff)
downloadrust-d5f2260bd37966b76ef6ee9c22d0cdebdcbe97a9.tar.gz
rust-d5f2260bd37966b76ef6ee9c22d0cdebdcbe97a9.zip
Add doc-comment.
Diffstat (limited to 'compiler/rustc_hir/src/def.rs')
-rw-r--r--compiler/rustc_hir/src/def.rs1
1 files changed, 1 insertions, 0 deletions
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