Skip to content

Commit

Permalink
added T:Send bound to Mutex<T> to avoid specialized Drop impl.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Mar 24, 2015
1 parent 1e71d2e commit 018eeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sync/mutex.rs
Expand Up @@ -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
Expand Down

0 comments on commit 018eeb7

Please sign in to comment.