Skip to content

Commit 90bed3f

Browse files
committedApr 23, 2015
Auto merge of #24695 - bluss:arc-default, r=alexcrichton
Relax bounds on Default implementation for Arc. Send + Sync are overly restrictive, follow other traits for Arc.
2 parents 24e4e60 + a6f8327 commit 90bed3f

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.