diff options
| author | Ulrik Sverdrup <root@localhost> | 2015-04-22 19:05:51 +0200 |
|---|---|---|
| committer | Ulrik Sverdrup <root@localhost> | 2015-04-22 19:05:51 +0200 |
| commit | a6f832764443b6562a92d81224b0514777ca6571 (patch) | |
| tree | 5c9253e1e2499628401169241328c1037493fdcc /src/liballoc | |
| parent | e9e9279d87d5786fcb8e12482f2920979602267b (diff) | |
| download | rust-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.rs | 2 |
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()) } } |
