@@ -3747,7 +3747,8 @@ impl<T: TrivialClone, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
37473747////////////////////////////////////////////////////////////////////////////////
37483748
37493749#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3750- impl < T , A : Allocator > ops:: Deref for Vec < T , A > {
3750+ #[ rustc_const_unstable( feature = "const_convert" , issue = "143773" ) ]
3751+ impl < T , A : Allocator > const ops:: Deref for Vec < T , A > {
37513752 type Target = [ T ] ;
37523753
37533754 #[ inline]
@@ -3757,7 +3758,8 @@ impl<T, A: Allocator> ops::Deref for Vec<T, A> {
37573758}
37583759
37593760#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3760- impl < T , A : Allocator > ops:: DerefMut for Vec < T , A > {
3761+ #[ rustc_const_unstable( feature = "const_convert" , issue = "143773" ) ]
3762+ impl < T , A : Allocator > const ops:: DerefMut for Vec < T , A > {
37613763 #[ inline]
37623764 fn deref_mut ( & mut self ) -> & mut [ T ] {
37633765 self . as_mut_slice ( )
@@ -3822,7 +3824,8 @@ impl<T: Hash, A: Allocator> Hash for Vec<T, A> {
38223824}
38233825
38243826#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3825- impl < T , I : SliceIndex < [ T ] > , A : Allocator > Index < I > for Vec < T , A > {
3827+ #[ rustc_const_unstable( feature = "const_index" , issue = "143775" ) ]
3828+ impl < T , I : [ const ] SliceIndex < [ T ] > , A : Allocator > const Index < I > for Vec < T , A > {
38263829 type Output = I :: Output ;
38273830
38283831 #[ inline]
@@ -3832,7 +3835,8 @@ impl<T, I: SliceIndex<[T]>, A: Allocator> Index<I> for Vec<T, A> {
38323835}
38333836
38343837#[ stable( feature = "rust1" , since = "1.0.0" ) ]
3835- impl < T , I : SliceIndex < [ T ] > , A : Allocator > IndexMut < I > for Vec < T , A > {
3838+ #[ rustc_const_unstable( feature = "const_index" , issue = "143775" ) ]
3839+ impl < T , I : [ const ] SliceIndex < [ T ] > , A : Allocator > const IndexMut < I > for Vec < T , A > {
38363840 #[ inline]
38373841 fn index_mut ( & mut self , index : I ) -> & mut Self :: Output {
38383842 IndexMut :: index_mut ( & mut * * self , index)
0 commit comments