Rename things: Tool -> ToolModule

This commit is contained in:
Lukas Wirth 2021-12-03 17:15:19 +01:00
parent 70b8331fd5
commit d174158abc
17 changed files with 33 additions and 33 deletions

View file

@ -27,7 +27,7 @@ use crate::{
source_analyzer::{resolve_hir_path, resolve_hir_path_as_macro, SourceAnalyzer},
Access, AssocItem, BuiltinAttr, Callable, ConstParam, Crate, Field, Function, HasSource,
HirFileId, Impl, InFile, Label, LifetimeParam, Local, MacroDef, Module, ModuleDef, Name, Path,
ScopeDef, Tool, Trait, Type, TypeAlias, TypeParam, VariantDef,
ScopeDef, ToolModule, Trait, Type, TypeAlias, TypeParam, VariantDef,
};
#[derive(Debug, Clone, PartialEq, Eq)]
@ -44,7 +44,7 @@ pub enum PathResolution {
Macro(MacroDef),
AssocItem(AssocItem),
BuiltinAttr(BuiltinAttr),
Tool(Tool),
ToolModule(ToolModule),
}
impl PathResolution {
@ -66,7 +66,7 @@ impl PathResolution {
Some(TypeNs::TypeAliasId((*alias).into()))
}
PathResolution::BuiltinAttr(_)
| PathResolution::Tool(_)
| PathResolution::ToolModule(_)
| PathResolution::Local(_)
| PathResolution::Macro(_)
| PathResolution::ConstParam(_) => None,