File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed
branches/auto/src/libcore/num Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
8
8
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
9
9
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
10
10
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11
- refs/heads/auto: 5f956103c8a939e69b1da6f9b8f674802520b229
11
+ refs/heads/auto: 04f8ba2ece3de0892e826db86f491f044e06d24c
12
12
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
13
13
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
14
14
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1
Original file line number Diff line number Diff line change 10
10
11
11
#![ doc( hidden) ]
12
12
13
+ #[ cfg( stage0) ]
13
14
macro_rules! int_module { ( $T: ty, $bits: expr) => (
14
15
15
16
// 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);
25
26
pub const MAX : $T = !MIN ;
26
27
27
28
) }
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 10
10
11
11
#![ doc( hidden) ]
12
12
13
+ #[ cfg( stage0) ]
13
14
macro_rules! uint_module { ( $T: ty, $bits: expr) => (
14
15
15
16
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -20,3 +21,15 @@ pub const MIN: $T = 0 as $T;
20
21
pub const MAX : $T = !0 as $T;
21
22
22
23
) }
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