diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2025-08-04 23:07:15 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2025-08-04 23:07:15 +0000 |
| commit | d5f2260bd37966b76ef6ee9c22d0cdebdcbe97a9 (patch) | |
| tree | 53ecbd3df913a52d751967676d8c5943c9fedf05 /compiler/rustc_hir/src/def.rs | |
| parent | 36f2045a930a3367963881db4f423d7de33b46a5 (diff) | |
| download | rust-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.rs | 1 |
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 |
