@@ -422,15 +422,15 @@ pub trait AsHandle {
422
422
}
423
423
424
424
#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
425
- impl < T : AsHandle > AsHandle for & T {
425
+ impl < T : AsHandle + ? Sized > AsHandle for & T {
426
426
#[ inline]
427
427
fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
428
428
T :: as_handle ( self )
429
429
}
430
430
}
431
431
432
432
#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
433
- impl < T : AsHandle > AsHandle for & mut T {
433
+ impl < T : AsHandle + ? Sized > AsHandle for & mut T {
434
434
#[ inline]
435
435
fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
436
436
T :: as_handle ( self )
@@ -450,23 +450,23 @@ impl<T: AsHandle> AsHandle for &mut T {
450
450
/// impl MyTrait for Box<File> {}
451
451
/// # }
452
452
/// ```
453
- impl < T : AsHandle > AsHandle for crate :: sync:: Arc < T > {
453
+ impl < T : AsHandle + ? Sized > AsHandle for crate :: sync:: Arc < T > {
454
454
#[ inline]
455
455
fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
456
456
( * * self ) . as_handle ( )
457
457
}
458
458
}
459
459
460
460
#[ stable( feature = "as_windows_ptrs" , since = "1.71.0" ) ]
461
- impl < T : AsHandle > AsHandle for crate :: rc:: Rc < T > {
461
+ impl < T : AsHandle + ? Sized > AsHandle for crate :: rc:: Rc < T > {
462
462
#[ inline]
463
463
fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
464
464
( * * self ) . as_handle ( )
465
465
}
466
466
}
467
467
468
468
#[ stable( feature = "as_windows_ptrs" , since = "1.71.0" ) ]
469
- impl < T : AsHandle > AsHandle for Box < T > {
469
+ impl < T : AsHandle + ? Sized > AsHandle for Box < T > {
470
470
#[ inline]
471
471
fn as_handle ( & self ) -> BorrowedHandle < ' _ > {
472
472
( * * self ) . as_handle ( )
0 commit comments