Rollup merge of #83707 - exrook:unsafecell, r=m-ou-se

Remove `T: Debug` bound on UnsafeCell Debug impl

Prior art: #65013
This commit is contained in:
Dylan DPC 2021-04-13 11:10:39 +02:00 committed by GitHub
commit 1cc4b6de3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2268,7 +2268,7 @@ impl<T: ?Sized + Debug> Debug for RefMut<'_, T> {
}
#[stable(feature = "core_impl_debug", since = "1.9.0")]
impl<T: ?Sized + Debug> Debug for UnsafeCell<T> {
impl<T: ?Sized> Debug for UnsafeCell<T> {
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
f.pad("UnsafeCell")
}