Skip to content

Commit

Permalink
Auto merge of #24695 - bluss:arc-default, r=alexcrichton
Browse files Browse the repository at this point in the history
Relax bounds on Default implementation for Arc.

Send + Sync are overly restrictive, follow other traits for Arc.
  • Loading branch information
bors committed Apr 23, 2015
2 parents 24e4e60 + a6f8327 commit 90bed3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()) }
}
Expand Down

0 comments on commit 90bed3f

Please sign in to comment.