@@ -1343,15 +1343,6 @@ impl<T: Hash> Hash for Vec<T> {
13431343impl < T > Index < usize > for Vec < T > {
13441344 type Output = T ;
13451345
1346-
1347- #[ cfg( stage0) ]
1348- #[ inline]
1349- fn index ( & self , index : & usize ) -> & T {
1350- // NB built-in indexing via `&[T]`
1351- & ( * * self ) [ * index]
1352- }
1353-
1354- #[ cfg( not( stage0) ) ]
13551346 #[ inline]
13561347 fn index ( & self , index : usize ) -> & T {
13571348 // NB built-in indexing via `&[T]`
@@ -1361,15 +1352,6 @@ impl<T> Index<usize> for Vec<T> {
13611352
13621353#[ stable( feature = "rust1" , since = "1.0.0" ) ]
13631354impl < T > IndexMut < usize > for Vec < T > {
1364-
1365- #[ cfg( stage0) ]
1366- #[ inline]
1367- fn index_mut ( & mut self , index : & usize ) -> & mut T {
1368- // NB built-in indexing via `&mut [T]`
1369- & mut ( * * self ) [ * index]
1370- }
1371-
1372- #[ cfg( not( stage0) ) ]
13731355 #[ inline]
13741356 fn index_mut ( & mut self , index : usize ) -> & mut T {
13751357 // NB built-in indexing via `&mut [T]`
@@ -1382,13 +1364,6 @@ impl<T> IndexMut<usize> for Vec<T> {
13821364impl < T > ops:: Index < ops:: Range < usize > > for Vec < T > {
13831365 type Output = [ T ] ;
13841366
1385- #[ cfg( stage0) ]
1386- #[ inline]
1387- fn index ( & self , index : & ops:: Range < usize > ) -> & [ T ] {
1388- Index :: index ( & * * self , index)
1389- }
1390-
1391- #[ cfg( not( stage0) ) ]
13921367 #[ inline]
13931368 fn index ( & self , index : ops:: Range < usize > ) -> & [ T ] {
13941369 Index :: index ( & * * self , index)
@@ -1398,13 +1373,6 @@ impl<T> ops::Index<ops::Range<usize>> for Vec<T> {
13981373impl < T > ops:: Index < ops:: RangeTo < usize > > for Vec < T > {
13991374 type Output = [ T ] ;
14001375
1401- #[ cfg( stage0) ]
1402- #[ inline]
1403- fn index ( & self , index : & ops:: RangeTo < usize > ) -> & [ T ] {
1404- Index :: index ( & * * self , index)
1405- }
1406-
1407- #[ cfg( not( stage0) ) ]
14081376 #[ inline]
14091377 fn index ( & self , index : ops:: RangeTo < usize > ) -> & [ T ] {
14101378 Index :: index ( & * * self , index)
@@ -1414,13 +1382,6 @@ impl<T> ops::Index<ops::RangeTo<usize>> for Vec<T> {
14141382impl < T > ops:: Index < ops:: RangeFrom < usize > > for Vec < T > {
14151383 type Output = [ T ] ;
14161384
1417- #[ cfg( stage0) ]
1418- #[ inline]
1419- fn index ( & self , index : & ops:: RangeFrom < usize > ) -> & [ T ] {
1420- Index :: index ( & * * self , index)
1421- }
1422-
1423- #[ cfg( not( stage0) ) ]
14241385 #[ inline]
14251386 fn index ( & self , index : ops:: RangeFrom < usize > ) -> & [ T ] {
14261387 Index :: index ( & * * self , index)
@@ -1430,13 +1391,6 @@ impl<T> ops::Index<ops::RangeFrom<usize>> for Vec<T> {
14301391impl < T > ops:: Index < ops:: RangeFull > for Vec < T > {
14311392 type Output = [ T ] ;
14321393
1433- #[ cfg( stage0) ]
1434- #[ inline]
1435- fn index ( & self , _index : & ops:: RangeFull ) -> & [ T ] {
1436- self
1437- }
1438-
1439- #[ cfg( not( stage0) ) ]
14401394 #[ inline]
14411395 fn index ( & self , _index : ops:: RangeFull ) -> & [ T ] {
14421396 self
@@ -1446,13 +1400,6 @@ impl<T> ops::Index<ops::RangeFull> for Vec<T> {
14461400#[ stable( feature = "rust1" , since = "1.0.0" ) ]
14471401impl < T > ops:: IndexMut < ops:: Range < usize > > for Vec < T > {
14481402
1449- #[ cfg( stage0) ]
1450- #[ inline]
1451- fn index_mut ( & mut self , index : & ops:: Range < usize > ) -> & mut [ T ] {
1452- IndexMut :: index_mut ( & mut * * self , index)
1453- }
1454-
1455- #[ cfg( not( stage0) ) ]
14561403 #[ inline]
14571404 fn index_mut ( & mut self , index : ops:: Range < usize > ) -> & mut [ T ] {
14581405 IndexMut :: index_mut ( & mut * * self , index)
@@ -1461,13 +1408,6 @@ impl<T> ops::IndexMut<ops::Range<usize>> for Vec<T> {
14611408#[ stable( feature = "rust1" , since = "1.0.0" ) ]
14621409impl < T > ops:: IndexMut < ops:: RangeTo < usize > > for Vec < T > {
14631410
1464- #[ cfg( stage0) ]
1465- #[ inline]
1466- fn index_mut ( & mut self , index : & ops:: RangeTo < usize > ) -> & mut [ T ] {
1467- IndexMut :: index_mut ( & mut * * self , index)
1468- }
1469-
1470- #[ cfg( not( stage0) ) ]
14711411 #[ inline]
14721412 fn index_mut ( & mut self , index : ops:: RangeTo < usize > ) -> & mut [ T ] {
14731413 IndexMut :: index_mut ( & mut * * self , index)
@@ -1476,13 +1416,6 @@ impl<T> ops::IndexMut<ops::RangeTo<usize>> for Vec<T> {
14761416#[ stable( feature = "rust1" , since = "1.0.0" ) ]
14771417impl < T > ops:: IndexMut < ops:: RangeFrom < usize > > for Vec < T > {
14781418
1479- #[ cfg( stage0) ]
1480- #[ inline]
1481- fn index_mut ( & mut self , index : & ops:: RangeFrom < usize > ) -> & mut [ T ] {
1482- IndexMut :: index_mut ( & mut * * self , index)
1483- }
1484-
1485- #[ cfg( not( stage0) ) ]
14861419 #[ inline]
14871420 fn index_mut ( & mut self , index : ops:: RangeFrom < usize > ) -> & mut [ T ] {
14881421 IndexMut :: index_mut ( & mut * * self , index)
@@ -1491,13 +1424,6 @@ impl<T> ops::IndexMut<ops::RangeFrom<usize>> for Vec<T> {
14911424#[ stable( feature = "rust1" , since = "1.0.0" ) ]
14921425impl < T > ops:: IndexMut < ops:: RangeFull > for Vec < T > {
14931426
1494- #[ cfg( stage0) ]
1495- #[ inline]
1496- fn index_mut ( & mut self , _index : & ops:: RangeFull ) -> & mut [ T ] {
1497- self . as_mut_slice ( )
1498- }
1499-
1500- #[ cfg( not( stage0) ) ]
15011427 #[ inline]
15021428 fn index_mut ( & mut self , _index : ops:: RangeFull ) -> & mut [ T ] {
15031429 self . as_mut_slice ( )
0 commit comments