@@ -92,42 +92,30 @@ impl From<Infallible> for TryFromSliceError {
92
92
}
93
93
94
94
#[ 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 ] {
99
96
#[ inline]
100
97
fn as_ref ( & self ) -> & [ T ] {
101
98
& self [ ..]
102
99
}
103
100
}
104
101
105
102
#[ 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 ] {
110
104
#[ inline]
111
105
fn as_mut ( & mut self ) -> & mut [ T ] {
112
106
& mut self [ ..]
113
107
}
114
108
}
115
109
116
110
#[ 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 ] {
121
112
fn borrow ( & self ) -> & [ T ] {
122
113
self
123
114
}
124
115
}
125
116
126
117
#[ 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 ] {
131
119
fn borrow_mut ( & mut self ) -> & mut [ T ] {
132
120
self
133
121
}
0 commit comments