File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ macro_rules! int_module {
55 ( $T: ident, #[ $attr: meta] ) => (
66 /// The smallest value that can be represented by this integer type.
77 #[ $attr]
8+ #[ rustc_deprecated( since = "1.42.0" , reason = "replaced by associated constant MIN" ) ]
89 pub const MIN : $T = $T:: min_value( ) ;
910 /// The largest value that can be represented by this integer type.
1011 #[ $attr]
12+ #[ rustc_deprecated( since = "1.42.0" , reason = "replaced by associated constant MAX" ) ]
1113 pub const MAX : $T = $T:: max_value( ) ;
1214 )
1315}
Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ macro_rules! uint_module {
55 ( $T: ident, #[ $attr: meta] ) => (
66 /// The smallest value that can be represented by this integer type.
77 #[ $attr]
8+ #[ rustc_deprecated( since = "1.42.0" , reason = "replaced by associated constant MIN" ) ]
89 pub const MIN : $T = $T:: min_value( ) ;
910 /// The largest value that can be represented by this integer type.
1011 #[ $attr]
12+ #[ rustc_deprecated( since = "1.42.0" , reason = "replaced by associated constant MAX" ) ]
1113 pub const MAX : $T = $T:: max_value( ) ;
1214 )
1315}
You can’t perform that action at this time.
0 commit comments