Relax bounds on Default implementation for Arc.
Send + Sync are overly restrictive, follow other traits for Arc.
This commit is contained in:
parent
e9e9279d87
commit
a6f8327644
@ -675,7 +675,7 @@ impl<T> fmt::Pointer for Arc<T> {
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: Default + Sync + Send> Default for Arc<T> {
|
||||
impl<T: Default> Default for Arc<T> {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn default() -> Arc<T> { Arc::new(Default::default()) }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user