We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
descr
AnonConst
article
Use
ExternCrate
1 parent 95b3c42 commit 18be5a0Copy full SHA for 18be5a0
src/librustc_hir/def.rs
@@ -128,7 +128,7 @@ impl DefKind {
128
DefKind::LifetimeParam => "lifetime parameter",
129
DefKind::Use => "import",
130
DefKind::ForeignMod => "foreign module",
131
- DefKind::AnonConst => "anonymous constant",
+ DefKind::AnonConst => "constant expression",
132
DefKind::Field => "field",
133
DefKind::Impl => "implementation",
134
DefKind::Closure => "closure",
@@ -147,8 +147,9 @@ impl DefKind {
147
| DefKind::AssocFn
148
| DefKind::Enum
149
| DefKind::OpaqueTy
150
- | DefKind::AnonConst
151
- | DefKind::Impl => "an",
+ | DefKind::Impl
+ | DefKind::Use
152
+ | DefKind::ExternCrate => "an",
153
DefKind::Macro(macro_kind) => macro_kind.article(),
154
_ => "a",
155
}
0 commit comments