Relax bounds on Default implementation for Arc.

Send + Sync are overly restrictive, follow other traits for Arc.
This commit is contained in:
Ulrik Sverdrup 2015-04-22 19:05:51 +02:00
parent e9e9279d87
commit a6f8327644

View File

@ -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()) }
}