Skip to content

Commit a6f8327

Browse files
author
Ulrik Sverdrup
committedApr 22, 2015
Relax bounds on Default implementation for Arc.
Send + Sync are overly restrictive, follow other traits for Arc.
1 parent e9e9279 commit a6f8327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/liballoc/arc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ impl<T> fmt::Pointer for Arc<T> {
675675
}
676676

677677
#[stable(feature = "rust1", since = "1.0.0")]
678-
impl<T: Default + Sync + Send> Default for Arc<T> {
678+
impl<T: Default> Default for Arc<T> {
679679
#[stable(feature = "rust1", since = "1.0.0")]
680680
fn default() -> Arc<T> { Arc::new(Default::default()) }
681681
}

0 commit comments

Comments
 (0)
Please sign in to comment.