Skip to content

Commit 18be5a0

Browse files
eddybmark-i-m
authored andcommitted
Tweak descr for AnonConst and fix article for Use and ExternCrate.
1 parent 95b3c42 commit 18be5a0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/librustc_hir/def.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl DefKind {
128128
DefKind::LifetimeParam => "lifetime parameter",
129129
DefKind::Use => "import",
130130
DefKind::ForeignMod => "foreign module",
131-
DefKind::AnonConst => "anonymous constant",
131+
DefKind::AnonConst => "constant expression",
132132
DefKind::Field => "field",
133133
DefKind::Impl => "implementation",
134134
DefKind::Closure => "closure",
@@ -147,8 +147,9 @@ impl DefKind {
147147
| DefKind::AssocFn
148148
| DefKind::Enum
149149
| DefKind::OpaqueTy
150-
| DefKind::AnonConst
151-
| DefKind::Impl => "an",
150+
| DefKind::Impl
151+
| DefKind::Use
152+
| DefKind::ExternCrate => "an",
152153
DefKind::Macro(macro_kind) => macro_kind.article(),
153154
_ => "a",
154155
}

0 commit comments

Comments
 (0)