File tree Expand file tree Collapse file tree 6 files changed +7
-2
lines changed Expand file tree Collapse file tree 6 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
3
3
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4
- refs/heads/try: 24d86137f5d04bfade044e96bbb429db4b248c1d
4
+ refs/heads/try: 8ff14bf3822e4e42e62cfbda0d3f934561a1db93
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
7
7
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change 10
10
11
11
//! The exponential distribution.
12
12
13
+ #[ cfg( not( test) ) ] // only necessary for no_std
13
14
use FloatMath ;
14
15
15
16
use { Rng , Rand } ;
Original file line number Diff line number Diff line change 13
13
use self :: GammaRepr :: * ;
14
14
use self :: ChiSquaredRepr :: * ;
15
15
16
+ #[ cfg( not( test) ) ] // only necessary for no_std
16
17
use FloatMath ;
17
18
18
19
use { Rng , Open01 } ;
Original file line number Diff line number Diff line change 17
17
//! internally. The `IndependentSample` trait is for generating values
18
18
//! that do not need to record state.
19
19
20
+ #[ cfg( not( test) ) ] // only necessary for no_std
20
21
use core:: num:: Float ;
22
+
21
23
use core:: marker:: PhantomData ;
22
24
23
25
use { Rng , Rand } ;
Original file line number Diff line number Diff line change 10
10
11
11
//! The normal and derived distributions.
12
12
13
+ #[ cfg( not( test) ) ] // only necessary for no_std
13
14
use FloatMath ;
14
15
15
16
use { Rng , Rand , Open01 } ;
Original file line number Diff line number Diff line change 28
28
#![ unstable( feature = "rand" ,
29
29
reason = "use `rand` from crates.io" ,
30
30
issue = "27703" ) ]
31
- #![ feature( core_float) ]
32
31
#![ feature( core_intrinsics) ]
33
32
#![ feature( staged_api) ]
34
33
#![ feature( step_by) ]
35
34
#![ feature( custom_attribute) ]
36
35
#![ allow( unused_attributes) ]
37
36
37
+ #![ cfg_attr( not( test) , feature( core_float) ) ] // only necessary for no_std
38
38
#![ cfg_attr( test, feature( test, rand) ) ]
39
39
40
40
#![ allow( deprecated) ]
You can’t perform that action at this time.
0 commit comments