mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Rename things: Tool -> ToolModule
This commit is contained in:
parent
70b8331fd5
commit
d174158abc
17 changed files with 33 additions and 33 deletions
|
@ -30,8 +30,8 @@ use syntax::{
|
|||
|
||||
use crate::{
|
||||
db::HirDatabase, semantics::PathResolution, Adt, BuiltinAttr, BuiltinType, Const, Field,
|
||||
Function, Local, MacroDef, ModuleDef, Static, Struct, Tool, Trait, Type, TypeAlias, TypeParam,
|
||||
Variant,
|
||||
Function, Local, MacroDef, ModuleDef, Static, Struct, ToolModule, Trait, Type, TypeAlias,
|
||||
TypeParam, Variant,
|
||||
};
|
||||
use base_db::CrateId;
|
||||
|
||||
|
@ -341,8 +341,8 @@ impl SourceAnalyzer {
|
|||
None => path.as_single_name_ref().and_then(|name_ref| {
|
||||
if let builtin @ Some(_) = BuiltinAttr::by_name(&name_ref.text()) {
|
||||
builtin.map(PathResolution::BuiltinAttr)
|
||||
} else if let tool @ Some(_) = Tool::by_name(&name_ref.text()) {
|
||||
tool.map(PathResolution::Tool)
|
||||
} else if let tool @ Some(_) = ToolModule::by_name(&name_ref.text()) {
|
||||
tool.map(PathResolution::ToolModule)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
@ -362,8 +362,8 @@ impl SourceAnalyzer {
|
|||
None if is_path_of_attr => path
|
||||
.first_segment()
|
||||
.and_then(|seg| seg.name_ref())
|
||||
.and_then(|name_ref| Tool::by_name(&name_ref.text()))
|
||||
.map(PathResolution::Tool),
|
||||
.and_then(|name_ref| ToolModule::by_name(&name_ref.text()))
|
||||
.map(PathResolution::ToolModule),
|
||||
None => None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue