mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
added T:Send bound to Mutex<T> to avoid specialized Drop impl.
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
/// *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
|
||||
|
||||
Reference in New Issue
Block a user