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 {
5
5
( $T: ident, #[ $attr: meta] ) => (
6
6
/// The smallest value that can be represented by this integer type.
7
7
#[ $attr]
8
+ #[ rustc_deprecated( since = "1.42.0" , reason = "replaced by associated constant MIN" ) ]
8
9
pub const MIN : $T = $T:: min_value( ) ;
9
10
/// The largest value that can be represented by this integer type.
10
11
#[ $attr]
12
+ #[ rustc_deprecated( since = "1.42.0" , reason = "replaced by associated constant MAX" ) ]
11
13
pub const MAX : $T = $T:: max_value( ) ;
12
14
)
13
15
}
Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ macro_rules! uint_module {
5
5
( $T: ident, #[ $attr: meta] ) => (
6
6
/// The smallest value that can be represented by this integer type.
7
7
#[ $attr]
8
+ #[ rustc_deprecated( since = "1.42.0" , reason = "replaced by associated constant MIN" ) ]
8
9
pub const MIN : $T = $T:: min_value( ) ;
9
10
/// The largest value that can be represented by this integer type.
10
11
#[ $attr]
12
+ #[ rustc_deprecated( since = "1.42.0" , reason = "replaced by associated constant MAX" ) ]
11
13
pub const MAX : $T = $T:: max_value( ) ;
12
14
)
13
15
}
You can’t perform that action at this time.
0 commit comments