@@ -92,42 +92,30 @@ impl From<Infallible> for TryFromSliceError {
9292}
9393
9494#[ stable( feature = "rust1" , since = "1.0.0" ) ]
95- impl < T , const N : usize > AsRef < [ T ] > for [ T ; N ]
96- where
97- [ T ; N ] : LengthAtMost32 ,
98- {
95+ impl < T , const N : usize > AsRef < [ T ] > for [ T ; N ] {
9996 #[ inline]
10097 fn as_ref ( & self ) -> & [ T ] {
10198 & self [ ..]
10299 }
103100}
104101
105102#[ stable( feature = "rust1" , since = "1.0.0" ) ]
106- impl < T , const N : usize > AsMut < [ T ] > for [ T ; N ]
107- where
108- [ T ; N ] : LengthAtMost32 ,
109- {
103+ impl < T , const N : usize > AsMut < [ T ] > for [ T ; N ] {
110104 #[ inline]
111105 fn as_mut ( & mut self ) -> & mut [ T ] {
112106 & mut self [ ..]
113107 }
114108}
115109
116110#[ stable( feature = "array_borrow" , since = "1.4.0" ) ]
117- impl < T , const N : usize > Borrow < [ T ] > for [ T ; N ]
118- where
119- [ T ; N ] : LengthAtMost32 ,
120- {
111+ impl < T , const N : usize > Borrow < [ T ] > for [ T ; N ] {
121112 fn borrow ( & self ) -> & [ T ] {
122113 self
123114 }
124115}
125116
126117#[ stable( feature = "array_borrow" , since = "1.4.0" ) ]
127- impl < T , const N : usize > BorrowMut < [ T ] > for [ T ; N ]
128- where
129- [ T ; N ] : LengthAtMost32 ,
130- {
118+ impl < T , const N : usize > BorrowMut < [ T ] > for [ T ; N ] {
131119 fn borrow_mut ( & mut self ) -> & mut [ T ] {
132120 self
133121 }
0 commit comments