mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-04 11:34:51 +00:00
Fix Borrow and BorrowMut define from beta std
This commit is contained in:
parent
edcfa4afa1
commit
439f2d24cd
@ -392,13 +392,13 @@ pub mod convert {
|
|||||||
|
|
||||||
pub mod borrow {
|
pub mod borrow {
|
||||||
// region:borrow
|
// region:borrow
|
||||||
pub trait Borrow<Borrowed: crate::marker::PointeeSized>: crate::marker::PointeeSized {
|
pub trait Borrow<Borrowed: ?Sized> {
|
||||||
fn borrow(&self) -> &Borrowed;
|
fn borrow(&self) -> &Borrowed;
|
||||||
}
|
}
|
||||||
// endregion:borrow
|
// endregion:borrow
|
||||||
|
|
||||||
// region:borrow_mut
|
// 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;
|
fn borrow_mut(&mut self) -> &mut Borrowed;
|
||||||
}
|
}
|
||||||
// endregion:borrow_mut
|
// endregion:borrow_mut
|
||||||
|
Loading…
x
Reference in New Issue
Block a user