about summary refs log tree commit diff
path: root/src/liballoc/sync.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-07-26 05:50:51 +0000
committerbors <bors@rust-lang.org>2020-07-26 05:50:51 +0000
commit461707c5a119cc33c5d7df585ddb6cbec4a081bf (patch)
tree24a677c43e50736f6028e26d8cfecb6ee9eb8f49 /src/liballoc/sync.rs
parenta4dd850720369d9e5b9df91820b23cddb2badc06 (diff)
parent8fc7d47c8c43dab634aff15908ab42ca056dda07 (diff)
downloadrust-461707c5a119cc33c5d7df585ddb6cbec4a081bf.tar.gz
rust-461707c5a119cc33c5d7df585ddb6cbec4a081bf.zip
Auto merge of #74060 - kpp:remove_length_at_most_32, r=dtolnay
Remove trait LengthAtMost32

This is a continuation of https://github.com/rust-lang/rust/pull/74026 preserving the original burrbull's commit.

I talked to @burrbull, he suggested me to finish his PR.
Diffstat (limited to 'src/liballoc/sync.rs')
-rw-r--r--src/liballoc/sync.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs
index 0cf250576f1..8a5f1ee5076 100644
--- a/src/liballoc/sync.rs
+++ b/src/liballoc/sync.rs
@@ -7,7 +7,6 @@
 //! [arc]: struct.Arc.html
 
 use core::any::Any;
-use core::array::LengthAtMost32;
 use core::borrow;
 use core::cmp::Ordering;
 use core::convert::{From, TryFrom};
@@ -2162,10 +2161,7 @@ where
 }
 
 #[stable(feature = "boxed_slice_try_from", since = "1.43.0")]
-impl<T, const N: usize> TryFrom<Arc<[T]>> for Arc<[T; N]>
-where
-    [T; N]: LengthAtMost32,
-{
+impl<T, const N: usize> TryFrom<Arc<[T]>> for Arc<[T; N]> {
     type Error = Arc<[T]>;
 
     fn try_from(boxed_slice: Arc<[T]>) -> Result<Self, Self::Error> {