Skip to content

Commit b72eb06

Browse files
committed
Add T: ?Sized to MappedRwLock*Guards' Debug impls.
1 parent 52fb6c6 commit b72eb06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/std/src/sync/rwlock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RwLockWriteGuard<'_, T> {
632632
}
633633

634634
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
635-
impl<T: fmt::Debug> fmt::Debug for MappedRwLockReadGuard<'_, T> {
635+
impl<T: fmt::Debug + ?Sized> fmt::Debug for MappedRwLockReadGuard<'_, T> {
636636
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
637637
(**self).fmt(f)
638638
}
@@ -646,7 +646,7 @@ impl<T: ?Sized + fmt::Display> fmt::Display for MappedRwLockReadGuard<'_, T> {
646646
}
647647

648648
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
649-
impl<T: fmt::Debug> fmt::Debug for MappedRwLockWriteGuard<'_, T> {
649+
impl<T: fmt::Debug + ?Sized> fmt::Debug for MappedRwLockWriteGuard<'_, T> {
650650
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
651651
(**self).fmt(f)
652652
}

0 commit comments

Comments
 (0)