Skip to content

Commit

Permalink
Rollup merge of rust-lang#83707 - exrook:unsafecell, r=m-ou-se
Browse files Browse the repository at this point in the history
Remove `T: Debug` bound on UnsafeCell Debug impl

Prior art: rust-lang#65013
  • Loading branch information
Dylan-DPC authored Apr 12, 2021
2 parents 968893f + 58218f6 commit abb93d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit abb93d3

Please sign in to comment.