mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
De Morgan's Law assist now correctly inverts <, <=, >, >=.
This commit is contained in:
parent
f7a4a87de2
commit
9db970ee08
7 changed files with 68 additions and 13 deletions
|
@ -45,6 +45,10 @@ impl FamousDefs<'_, '_> {
|
|||
self.find_crate("core")
|
||||
}
|
||||
|
||||
pub fn core_cmp_Ord(&self) -> Option<Trait> {
|
||||
self.find_trait("core:cmp:Ord")
|
||||
}
|
||||
|
||||
pub fn core_convert_From(&self) -> Option<Trait> {
|
||||
self.find_trait("core:convert:From")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue