File tree 5 files changed +6
-1
lines changed
5 files changed +6
-1
lines changed 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