Skip to content

Commit d5f2260

Browse files
committed
Add doc-comment.
1 parent 36f2045 commit d5f2260

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_hir/src/def.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ impl DefKind {
318318
)
319319
}
320320

321+
/// Whether the corresponding item has generic parameters, ie. the `generics_of` query works.
321322
pub fn has_generics(self) -> bool {
322323
match self {
323324
DefKind::AnonConst

0 commit comments

Comments
 (0)