From bd8ed644e4362785b079ba9fbe2d4e490a678d27 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sun, 24 Feb 2019 21:36:49 +0100 Subject: Rename Type => TypeAlias --- crates/ra_hir/src/nameres/lower.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir/src/nameres') diff --git a/crates/ra_hir/src/nameres/lower.rs b/crates/ra_hir/src/nameres/lower.rs index 81d80654c..522f13b44 100644 --- a/crates/ra_hir/src/nameres/lower.rs +++ b/crates/ra_hir/src/nameres/lower.rs @@ -10,7 +10,7 @@ use rustc_hash::FxHashMap; use crate::{ SourceItemId, Path, ModuleSource, Name, HirFileId, MacroCallLoc, AsName, PerNs, Function, - ModuleDef, Module, Struct, Enum, Const, Static, Trait, Type, + ModuleDef, Module, Struct, Enum, Const, Static, Trait, TypeAlias, ids::LocationCtx, PersistentHirDatabase, }; @@ -169,7 +169,7 @@ impl LoweredModule { } ast::ModuleItemKind::TypeDef(it) => { if let Some(name) = it.name() { - let t = Type { id: ctx.to_def(it) }; + let t = TypeAlias { id: ctx.to_def(it) }; self.declarations.insert(name.as_name(), PerNs::types(t.into())); } } -- cgit v1.2.3