We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54b7d21 commit c8b527eCopy full SHA for c8b527e
src/librustc_hir/def.rs
@@ -107,8 +107,7 @@ impl DefKind {
107
DefKind::Union => "union",
108
DefKind::Trait => "trait",
109
DefKind::ForeignTy => "foreign type",
110
- // FIXME: Update the description to "assoc fn"
111
- DefKind::AssocFn => "method",
+ DefKind::AssocFn => "associated function",
112
DefKind::Const => "constant",
113
DefKind::AssocConst => "associated constant",
114
DefKind::TyParam => "type parameter",
@@ -123,6 +122,7 @@ impl DefKind {
123
122
DefKind::AssocTy
124
| DefKind::AssocConst
125
| DefKind::AssocOpaqueTy
+ | DefKind::AssocFn
126
| DefKind::Enum
127
| DefKind::OpaqueTy => "an",
128
DefKind::Macro(macro_kind) => macro_kind.article(),
0 commit comments