mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-07-07 21:25:37 +00:00
Fix Borrow and BorrowMut define from beta std
This commit is contained in:
parent
edcfa4afa1
commit
439f2d24cd
1 changed files with 2 additions and 2 deletions
|
@ -392,13 +392,13 @@ pub mod convert {
|
|||
|
||||
pub mod borrow {
|
||||
// region:borrow
|
||||
pub trait Borrow<Borrowed: crate::marker::PointeeSized>: crate::marker::PointeeSized {
|
||||
pub trait Borrow<Borrowed: ?Sized> {
|
||||
fn borrow(&self) -> &Borrowed;
|
||||
}
|
||||
// endregion:borrow
|
||||
|
||||
// region:borrow_mut
|
||||
pub trait BorrowMut<Borrowed: crate::marker::PointeeSized>: Borrow<Borrowed> {
|
||||
pub trait BorrowMut<Borrowed: ?Sized>: Borrow<Borrowed> {
|
||||
fn borrow_mut(&mut self) -> &mut Borrowed;
|
||||
}
|
||||
// endregion:borrow_mut
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue