diff options
| author | Michael Goulet <michael@errs.io> | 2022-10-09 07:09:57 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-10-09 07:09:57 +0000 |
| commit | 70f3c79c50669f99c3f14cbbba2ce03a196cd1d1 (patch) | |
| tree | 397c47ee5cfc6506e5a75c05fbdaea1e4bea2cf9 /compiler/rustc_middle/src | |
| parent | 28eda9b18ac3c492b6934283b39953aab337351f (diff) | |
| download | rust-70f3c79c50669f99c3f14cbbba2ce03a196cd1d1.tar.gz rust-70f3c79c50669f99c3f14cbbba2ce03a196cd1d1.zip | |
ImplItemKind::TyAlias => ImplItemKind::Type
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/hir/map/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/hir/map/mod.rs b/compiler/rustc_middle/src/hir/map/mod.rs index b78c3f85596..302f12a6f7d 100644 --- a/compiler/rustc_middle/src/hir/map/mod.rs +++ b/compiler/rustc_middle/src/hir/map/mod.rs @@ -241,7 +241,7 @@ impl<'hir> Map<'hir> { Node::ImplItem(item) => match item.kind { ImplItemKind::Const(..) => DefKind::AssocConst, ImplItemKind::Fn(..) => DefKind::AssocFn, - ImplItemKind::TyAlias(..) => DefKind::AssocTy, + ImplItemKind::Type(..) => DefKind::AssocTy, }, Node::Variant(_) => DefKind::Variant, Node::Ctor(variant_data) => { @@ -1244,7 +1244,7 @@ fn hir_id_to_string(map: Map<'_>, id: HirId) -> String { format!("assoc const {} in {}{}", ii.ident, path_str(), id_str) } ImplItemKind::Fn(..) => format!("method {} in {}{}", ii.ident, path_str(), id_str), - ImplItemKind::TyAlias(_) => { + ImplItemKind::Type(_) => { format!("assoc type {} in {}{}", ii.ident, path_str(), id_str) } }, |
