@@ -2004,7 +2004,6 @@ assert_eq!(value, ", $swap_op, ");
2004
2004
When starting from a slice rather than an array, fallible conversion APIs can be used:
2005
2005
2006
2006
```
2007
- #![feature(try_from)]
2008
2007
use std::convert::TryInto;
2009
2008
2010
2009
fn read_be_" , stringify!( $SelfT) , "(input: &mut &[u8]) -> " , stringify!( $SelfT) , " {
@@ -2036,7 +2035,6 @@ assert_eq!(value, ", $swap_op, ");
2036
2035
When starting from a slice rather than an array, fallible conversion APIs can be used:
2037
2036
2038
2037
```
2039
- #![feature(try_from)]
2040
2038
use std::convert::TryInto;
2041
2039
2042
2040
fn read_be_" , stringify!( $SelfT) , "(input: &mut &[u8]) -> " , stringify!( $SelfT) , " {
@@ -2078,7 +2076,6 @@ assert_eq!(value, ", $swap_op, ");
2078
2076
When starting from a slice rather than an array, fallible conversion APIs can be used:
2079
2077
2080
2078
```
2081
- #![feature(try_from)]
2082
2079
use std::convert::TryInto;
2083
2080
2084
2081
fn read_be_" , stringify!( $SelfT) , "(input: &mut &[u8]) -> " , stringify!( $SelfT) , " {
@@ -3771,7 +3768,6 @@ assert_eq!(value, ", $swap_op, ");
3771
3768
When starting from a slice rather than an array, fallible conversion APIs can be used:
3772
3769
3773
3770
```
3774
- #![feature(try_from)]
3775
3771
use std::convert::TryInto;
3776
3772
3777
3773
fn read_be_" , stringify!( $SelfT) , "(input: &mut &[u8]) -> " , stringify!( $SelfT) , " {
@@ -3803,7 +3799,6 @@ assert_eq!(value, ", $swap_op, ");
3803
3799
When starting from a slice rather than an array, fallible conversion APIs can be used:
3804
3800
3805
3801
```
3806
- #![feature(try_from)]
3807
3802
use std::convert::TryInto;
3808
3803
3809
3804
fn read_be_" , stringify!( $SelfT) , "(input: &mut &[u8]) -> " , stringify!( $SelfT) , " {
@@ -3845,7 +3840,6 @@ assert_eq!(value, ", $swap_op, ");
3845
3840
When starting from a slice rather than an array, fallible conversion APIs can be used:
3846
3841
3847
3842
```
3848
- #![feature(try_from)]
3849
3843
use std::convert::TryInto;
3850
3844
3851
3845
fn read_be_" , stringify!( $SelfT) , "(input: &mut &[u8]) -> " , stringify!( $SelfT) , " {
@@ -4508,7 +4502,7 @@ macro_rules! from_str_radix_int_impl {
4508
4502
from_str_radix_int_impl ! { isize i8 i16 i32 i64 i128 usize u8 u16 u32 u64 u128 }
4509
4503
4510
4504
/// The error type returned when a checked integral type conversion fails.
4511
- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4505
+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
4512
4506
#[ derive( Debug , Copy , Clone , PartialEq , Eq ) ]
4513
4507
pub struct TryFromIntError ( ( ) ) ;
4514
4508
@@ -4523,14 +4517,14 @@ impl TryFromIntError {
4523
4517
}
4524
4518
}
4525
4519
4526
- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4520
+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
4527
4521
impl fmt:: Display for TryFromIntError {
4528
4522
fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
4529
4523
self . __description ( ) . fmt ( fmt)
4530
4524
}
4531
4525
}
4532
4526
4533
- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4527
+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
4534
4528
impl From < Infallible > for TryFromIntError {
4535
4529
fn from ( x : Infallible ) -> TryFromIntError {
4536
4530
match x { }
@@ -4550,7 +4544,7 @@ impl From<!> for TryFromIntError {
4550
4544
// no possible bounds violation
4551
4545
macro_rules! try_from_unbounded {
4552
4546
( $source: ty, $( $target: ty) ,* ) => { $(
4553
- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4547
+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
4554
4548
impl TryFrom <$source> for $target {
4555
4549
type Error = TryFromIntError ;
4556
4550
@@ -4565,7 +4559,7 @@ macro_rules! try_from_unbounded {
4565
4559
// only negative bounds
4566
4560
macro_rules! try_from_lower_bounded {
4567
4561
( $source: ty, $( $target: ty) ,* ) => { $(
4568
- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4562
+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
4569
4563
impl TryFrom <$source> for $target {
4570
4564
type Error = TryFromIntError ;
4571
4565
@@ -4584,7 +4578,7 @@ macro_rules! try_from_lower_bounded {
4584
4578
// unsigned to signed (only positive bound)
4585
4579
macro_rules! try_from_upper_bounded {
4586
4580
( $source: ty, $( $target: ty) ,* ) => { $(
4587
- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4581
+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
4588
4582
impl TryFrom <$source> for $target {
4589
4583
type Error = TryFromIntError ;
4590
4584
@@ -4603,7 +4597,7 @@ macro_rules! try_from_upper_bounded {
4603
4597
// all other cases
4604
4598
macro_rules! try_from_both_bounded {
4605
4599
( $source: ty, $( $target: ty) ,* ) => { $(
4606
- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4600
+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
4607
4601
impl TryFrom <$source> for $target {
4608
4602
type Error = TryFromIntError ;
4609
4603
0 commit comments