about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorUlrik Sverdrup <root@localhost>2015-04-22 19:05:51 +0200
committerUlrik Sverdrup <root@localhost>2015-04-22 19:05:51 +0200
commita6f832764443b6562a92d81224b0514777ca6571 (patch)
tree5c9253e1e2499628401169241328c1037493fdcc /src/liballoc
parente9e9279d87d5786fcb8e12482f2920979602267b (diff)
downloadrust-a6f832764443b6562a92d81224b0514777ca6571.tar.gz
rust-a6f832764443b6562a92d81224b0514777ca6571.zip
Relax bounds on Default implementation for Arc.
Send + Sync are overly restrictive, follow other traits for Arc.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/arc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs
index 554ca3ea539..9d7f9ea8990 100644
--- a/src/liballoc/arc.rs
+++ b/src/liballoc/arc.rs
@@ -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()) }
 }