Skip to content

Commit 3ad5bc0

Browse files
committed
Auto merge of #31427 - reem:more-debug-mutex, r=sfackler
There is no reason to require T: 'static; the bound appears to be a historical artifact.
2 parents be2ffdd + ca72440 commit 3ad5bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sync/mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl<T: ?Sized> Drop for Mutex<T> {
311311
}
312312

313313
#[stable(feature = "rust1", since = "1.0.0")]
314-
impl<T: ?Sized + fmt::Debug + 'static> fmt::Debug for Mutex<T> {
314+
impl<T: ?Sized + fmt::Debug> fmt::Debug for Mutex<T> {
315315
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
316316
match self.try_lock() {
317317
Ok(guard) => write!(f, "Mutex {{ data: {:?} }}", &*guard),

0 commit comments

Comments
 (0)