提交 018eeb76 编写于 作者: F Felix S. Klock II

added `T:Send` bound to `Mutex<T>` to avoid specialized Drop impl.

上级 1e71d2e7
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册