mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 18:26:19 +00:00
Move dual blanket impl logic from source analyzer to goto_def
This commit is contained in:
parent
93a5846784
commit
03ea40369f
9 changed files with 92 additions and 113 deletions
|
|
@ -46,6 +46,10 @@ impl FamousDefs<'_, '_> {
|
|||
self.find_trait("core:cmp:Ord")
|
||||
}
|
||||
|
||||
pub fn core_convert_FromStr(&self) -> Option<Trait> {
|
||||
self.find_trait("core:str:FromStr")
|
||||
}
|
||||
|
||||
pub fn core_convert_From(&self) -> Option<Trait> {
|
||||
self.find_trait("core:convert:From")
|
||||
}
|
||||
|
|
@ -54,6 +58,14 @@ impl FamousDefs<'_, '_> {
|
|||
self.find_trait("core:convert:Into")
|
||||
}
|
||||
|
||||
pub fn core_convert_TryFrom(&self) -> Option<Trait> {
|
||||
self.find_trait("core:convert:TryFrom")
|
||||
}
|
||||
|
||||
pub fn core_convert_TryInto(&self) -> Option<Trait> {
|
||||
self.find_trait("core:convert:TryInto")
|
||||
}
|
||||
|
||||
pub fn core_convert_Index(&self) -> Option<Trait> {
|
||||
self.find_trait("core:ops:Index")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue