File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1010
1111#![ doc( hidden) ]
1212
13+ #[ cfg( stage0) ]
1314macro_rules! int_module { ( $T: ty, $bits: expr) => (
1415
1516// FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
@@ -25,3 +26,15 @@ pub const MIN: $T = (-1 as $T) << ($bits - 1);
2526pub const MAX : $T = !MIN ;
2627
2728) }
29+
30+ #[ cfg( not( stage0) ) ]
31+ macro_rules! int_module { ( $T: ident, $bits: expr) => (
32+
33+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
34+ #[ allow( missing_docs) ]
35+ pub const MIN : $T = $T:: min_value( ) ;
36+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
37+ #[ allow( missing_docs) ]
38+ pub const MAX : $T = $T:: max_value( ) ;
39+
40+ ) }
Original file line number Diff line number Diff line change 1010
1111#![ doc( hidden) ]
1212
13+ #[ cfg( stage0) ]
1314macro_rules! uint_module { ( $T: ty, $bits: expr) => (
1415
1516#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -20,3 +21,15 @@ pub const MIN: $T = 0 as $T;
2021pub const MAX : $T = !0 as $T;
2122
2223) }
24+
25+ #[ cfg( not( stage0) ) ]
26+ macro_rules! uint_module { ( $T: ident, $bits: expr) => (
27+
28+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
29+ #[ allow( missing_docs) ]
30+ pub const MIN : $T = $T:: min_value( ) ;
31+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
32+ #[ allow( missing_docs) ]
33+ pub const MAX : $T = $T:: max_value( ) ;
34+
35+ ) }
You can’t perform that action at this time.
0 commit comments