diff options
| author | bors <bors@rust-lang.org> | 2016-02-06 17:13:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-02-06 17:13:49 +0000 |
| commit | 3ad5bc01ec9726f1f3cdf2416ea88cbaa4bb8068 (patch) | |
| tree | 6dd4ffc7d3062710b0ac09755d8104528d417069 /src/libstd/sync | |
| parent | be2ffddffb1c8e56a673c3bf29fae780e1ef53c5 (diff) | |
| parent | ca72440e694910a58bb5b7d2667e3495e0dbee30 (diff) | |
| download | rust-3ad5bc01ec9726f1f3cdf2416ea88cbaa4bb8068.tar.gz rust-3ad5bc01ec9726f1f3cdf2416ea88cbaa4bb8068.zip | |
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.
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/mutex.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mutex.rs b/src/libstd/sync/mutex.rs index e83ebd10612..2cc29629f6a 100644 --- a/src/libstd/sync/mutex.rs +++ b/src/libstd/sync/mutex.rs @@ -311,7 +311,7 @@ impl<T: ?Sized> Drop for Mutex<T> { } #[stable(feature = "rust1", since = "1.0.0")] -impl<T: ?Sized + fmt::Debug + 'static> fmt::Debug for Mutex<T> { +impl<T: ?Sized + fmt::Debug> fmt::Debug for Mutex<T> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self.try_lock() { Ok(guard) => write!(f, "Mutex {{ data: {:?} }}", &*guard), |
