diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2020-04-17 23:00:00 +0300 |
|---|---|---|
| committer | mark <markm@cs.wisc.edu> | 2020-04-24 13:44:08 -0500 |
| commit | 18be5a08a2cadefe28cdc9e635f3534b0d615b03 (patch) | |
| tree | fcccc4425b3b23fbc46c55b6f24dd12901f54538 | |
| parent | 95b3c427d4cf740ebb3602c04dc5717aeb2ea4ee (diff) | |
| download | rust-18be5a08a2cadefe28cdc9e635f3534b0d615b03.tar.gz rust-18be5a08a2cadefe28cdc9e635f3534b0d615b03.zip | |
Tweak `descr` for `AnonConst` and fix `article` for `Use` and `ExternCrate`.
| -rw-r--r-- | src/librustc_hir/def.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/librustc_hir/def.rs b/src/librustc_hir/def.rs index 8e87ce60ffd..88049f85f45 100644 --- a/src/librustc_hir/def.rs +++ b/src/librustc_hir/def.rs @@ -128,7 +128,7 @@ impl DefKind { DefKind::LifetimeParam => "lifetime parameter", DefKind::Use => "import", DefKind::ForeignMod => "foreign module", - DefKind::AnonConst => "anonymous constant", + DefKind::AnonConst => "constant expression", DefKind::Field => "field", DefKind::Impl => "implementation", DefKind::Closure => "closure", @@ -147,8 +147,9 @@ impl DefKind { | DefKind::AssocFn | DefKind::Enum | DefKind::OpaqueTy - | DefKind::AnonConst - | DefKind::Impl => "an", + | DefKind::Impl + | DefKind::Use + | DefKind::ExternCrate => "an", DefKind::Macro(macro_kind) => macro_kind.article(), _ => "a", } |
