Skip to content

Commit 1d7fde3

Browse files
committed
Fix Borrow and BorrowMut define from beta std
1 parent 625b73b commit 1d7fde3

File tree

1 file changed

+2
-2
lines changed
  • src/tools/rust-analyzer/crates/test-utils/src

1 file changed

+2
-2
lines changed

src/tools/rust-analyzer/crates/test-utils/src/minicore.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,13 @@ pub mod convert {
392392

393393
pub mod borrow {
394394
// region:borrow
395-
pub trait Borrow<Borrowed: crate::marker::PointeeSized>: crate::marker::PointeeSized {
395+
pub trait Borrow<Borrowed: ?Sized> {
396396
fn borrow(&self) -> &Borrowed;
397397
}
398398
// endregion:borrow
399399

400400
// region:borrow_mut
401-
pub trait BorrowMut<Borrowed: crate::marker::PointeeSized>: Borrow<Borrowed> {
401+
pub trait BorrowMut<Borrowed: ?Sized>: Borrow<Borrowed> {
402402
fn borrow_mut(&mut self) -> &mut Borrowed;
403403
}
404404
// endregion:borrow_mut

0 commit comments

Comments
 (0)