Add doc-comment.

This commit is contained in:
Camille GILLOT
2025-08-04 23:07:15 +00:00
parent 36f2045a93
commit d5f2260bd3

View File

@@ -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