diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-03-21 13:30:26 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-03-24 22:27:23 +0100 |
| commit | 018eeb76f0e7384f760afa2a97a07110eef05145 (patch) | |
| tree | 3b400540a6362a41fb50f37a2242762699deef60 /src/libstd | |
| parent | 1e71d2e71c037b0008ce9f65a61cf814abd52b68 (diff) | |
| download | rust-018eeb76f0e7384f760afa2a97a07110eef05145.tar.gz rust-018eeb76f0e7384f760afa2a97a07110eef05145.zip | |
added `T:Send` bound to `Mutex<T>` to avoid specialized Drop impl.
Diffstat (limited to 'src/libstd')
| -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 2bf75cf1d37..6c1cda783b7 100644 --- a/src/libstd/sync/mutex.rs +++ b/src/libstd/sync/mutex.rs @@ -112,7 +112,7 @@ use fmt; /// *guard += 1; /// ``` #[stable(feature = "rust1", since = "1.0.0")] -pub struct Mutex<T> { +pub struct Mutex<T: Send> { // Note that this static mutex is in a *box*, not inlined into the struct // itself. Once a native mutex has been used once, its address can never // change (it can't be moved). This mutex type can be safely moved at any |
