@@ -2004,7 +2004,6 @@ assert_eq!(value, ", $swap_op, ");
20042004When starting from a slice rather than an array, fallible conversion APIs can be used:
20052005
20062006```
2007- #![feature(try_from)]
20082007use std::convert::TryInto;
20092008
20102009fn read_be_" , stringify!( $SelfT) , "(input: &mut &[u8]) -> " , stringify!( $SelfT) , " {
@@ -2036,7 +2035,6 @@ assert_eq!(value, ", $swap_op, ");
20362035When starting from a slice rather than an array, fallible conversion APIs can be used:
20372036
20382037```
2039- #![feature(try_from)]
20402038use std::convert::TryInto;
20412039
20422040fn read_be_" , stringify!( $SelfT) , "(input: &mut &[u8]) -> " , stringify!( $SelfT) , " {
@@ -2078,7 +2076,6 @@ assert_eq!(value, ", $swap_op, ");
20782076When starting from a slice rather than an array, fallible conversion APIs can be used:
20792077
20802078```
2081- #![feature(try_from)]
20822079use std::convert::TryInto;
20832080
20842081fn read_be_" , stringify!( $SelfT) , "(input: &mut &[u8]) -> " , stringify!( $SelfT) , " {
@@ -3771,7 +3768,6 @@ assert_eq!(value, ", $swap_op, ");
37713768When starting from a slice rather than an array, fallible conversion APIs can be used:
37723769
37733770```
3774- #![feature(try_from)]
37753771use std::convert::TryInto;
37763772
37773773fn read_be_" , stringify!( $SelfT) , "(input: &mut &[u8]) -> " , stringify!( $SelfT) , " {
@@ -3803,7 +3799,6 @@ assert_eq!(value, ", $swap_op, ");
38033799When starting from a slice rather than an array, fallible conversion APIs can be used:
38043800
38053801```
3806- #![feature(try_from)]
38073802use std::convert::TryInto;
38083803
38093804fn read_be_" , stringify!( $SelfT) , "(input: &mut &[u8]) -> " , stringify!( $SelfT) , " {
@@ -3845,7 +3840,6 @@ assert_eq!(value, ", $swap_op, ");
38453840When starting from a slice rather than an array, fallible conversion APIs can be used:
38463841
38473842```
3848- #![feature(try_from)]
38493843use std::convert::TryInto;
38503844
38513845fn read_be_" , stringify!( $SelfT) , "(input: &mut &[u8]) -> " , stringify!( $SelfT) , " {
@@ -4508,7 +4502,7 @@ macro_rules! from_str_radix_int_impl {
45084502from_str_radix_int_impl ! { isize i8 i16 i32 i64 i128 usize u8 u16 u32 u64 u128 }
45094503
45104504/// 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 " ) ]
45124506#[ derive( Debug , Copy , Clone , PartialEq , Eq ) ]
45134507pub struct TryFromIntError ( ( ) ) ;
45144508
@@ -4523,14 +4517,14 @@ impl TryFromIntError {
45234517 }
45244518}
45254519
4526- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4520+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
45274521impl fmt:: Display for TryFromIntError {
45284522 fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
45294523 self . __description ( ) . fmt ( fmt)
45304524 }
45314525}
45324526
4533- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4527+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
45344528impl From < Infallible > for TryFromIntError {
45354529 fn from ( x : Infallible ) -> TryFromIntError {
45364530 match x { }
@@ -4550,7 +4544,7 @@ impl From<!> for TryFromIntError {
45504544// no possible bounds violation
45514545macro_rules! try_from_unbounded {
45524546 ( $source: ty, $( $target: ty) ,* ) => { $(
4553- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4547+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
45544548 impl TryFrom <$source> for $target {
45554549 type Error = TryFromIntError ;
45564550
@@ -4565,7 +4559,7 @@ macro_rules! try_from_unbounded {
45654559// only negative bounds
45664560macro_rules! try_from_lower_bounded {
45674561 ( $source: ty, $( $target: ty) ,* ) => { $(
4568- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4562+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
45694563 impl TryFrom <$source> for $target {
45704564 type Error = TryFromIntError ;
45714565
@@ -4584,7 +4578,7 @@ macro_rules! try_from_lower_bounded {
45844578// unsigned to signed (only positive bound)
45854579macro_rules! try_from_upper_bounded {
45864580 ( $source: ty, $( $target: ty) ,* ) => { $(
4587- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4581+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
45884582 impl TryFrom <$source> for $target {
45894583 type Error = TryFromIntError ;
45904584
@@ -4603,7 +4597,7 @@ macro_rules! try_from_upper_bounded {
46034597// all other cases
46044598macro_rules! try_from_both_bounded {
46054599 ( $source: ty, $( $target: ty) ,* ) => { $(
4606- #[ unstable ( feature = "try_from" , issue = "33417 " ) ]
4600+ #[ stable ( feature = "try_from" , since = "1.34.0 " ) ]
46074601 impl TryFrom <$source> for $target {
46084602 type Error = TryFromIntError ;
46094603
0 commit comments