File tree Expand file tree Collapse file tree 5 files changed +6
-1
lines changed Expand file tree Collapse file tree 5 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1010
1111//! The exponential distribution.
1212
13+ #[ cfg( not( test) ) ] // only necessary for no_std
1314use FloatMath ;
1415
1516use { Rng , Rand } ;
Original file line number Diff line number Diff line change 1313use self :: GammaRepr :: * ;
1414use self :: ChiSquaredRepr :: * ;
1515
16+ #[ cfg( not( test) ) ] // only necessary for no_std
1617use FloatMath ;
1718
1819use { Rng , Open01 } ;
Original file line number Diff line number Diff line change 1717//! internally. The `IndependentSample` trait is for generating values
1818//! that do not need to record state.
1919
20+ #[ cfg( not( test) ) ] // only necessary for no_std
2021use core:: num:: Float ;
22+
2123use core:: marker:: PhantomData ;
2224
2325use { Rng , Rand } ;
Original file line number Diff line number Diff line change 1010
1111//! The normal and derived distributions.
1212
13+ #[ cfg( not( test) ) ] // only necessary for no_std
1314use FloatMath ;
1415
1516use { Rng , Rand , Open01 } ;
Original file line number Diff line number Diff line change 2828#![ unstable( feature = "rand" ,
2929 reason = "use `rand` from crates.io" ,
3030 issue = "27703" ) ]
31- #![ feature( core_float) ]
3231#![ feature( core_intrinsics) ]
3332#![ feature( staged_api) ]
3433#![ feature( step_by) ]
3534#![ feature( custom_attribute) ]
3635#![ allow( unused_attributes) ]
3736
37+ #![ cfg_attr( not( test) , feature( core_float) ) ] // only necessary for no_std
3838#![ cfg_attr( test, feature( test, rand) ) ]
3939
4040#![ allow( deprecated) ]
You can’t perform that action at this time.
0 commit comments