mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-04 10:50:15 +00:00
Merge pull request #20132 from A4-Tacks/asmut-borrow-minicore
Add AsMut, Borrow and BorrowMut to minicore and famous_defs
This commit is contained in:
commit
2691c11104
2 changed files with 34 additions and 0 deletions
|
@ -106,6 +106,18 @@ impl FamousDefs<'_, '_> {
|
|||
self.find_trait("core:convert:AsRef")
|
||||
}
|
||||
|
||||
pub fn core_convert_AsMut(&self) -> Option<Trait> {
|
||||
self.find_trait("core:convert:AsMut")
|
||||
}
|
||||
|
||||
pub fn core_borrow_Borrow(&self) -> Option<Trait> {
|
||||
self.find_trait("core:borrow:Borrow")
|
||||
}
|
||||
|
||||
pub fn core_borrow_BorrowMut(&self) -> Option<Trait> {
|
||||
self.find_trait("core:borrow:BorrowMut")
|
||||
}
|
||||
|
||||
pub fn core_ops_ControlFlow(&self) -> Option<Enum> {
|
||||
self.find_enum("core:ops:ControlFlow")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue