Skip to content

Commit 2780941

Browse files
committed
---
yaml --- r: 277739 b: refs/heads/try c: 8ff14bf h: refs/heads/master i: 277737: 1fb6381 277735: ab15c39
1 parent 8ccd3f5 commit 2780941

File tree

6 files changed

+7
-2
lines changed

6 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 24d86137f5d04bfade044e96bbb429db4b248c1d
4+
refs/heads/try: 8ff14bf3822e4e42e62cfbda0d3f934561a1db93
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librand/distributions/exponential.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
//! The exponential distribution.
1212
13+
#[cfg(not(test))] // only necessary for no_std
1314
use FloatMath;
1415

1516
use {Rng, Rand};

branches/try/src/librand/distributions/gamma.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use self::GammaRepr::*;
1414
use self::ChiSquaredRepr::*;
1515

16+
#[cfg(not(test))] // only necessary for no_std
1617
use FloatMath;
1718

1819
use {Rng, Open01};

branches/try/src/librand/distributions/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
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
2021
use core::num::Float;
22+
2123
use core::marker::PhantomData;
2224

2325
use {Rng, Rand};

branches/try/src/librand/distributions/normal.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
//! The normal and derived distributions.
1212
13+
#[cfg(not(test))] // only necessary for no_std
1314
use FloatMath;
1415

1516
use {Rng, Rand, Open01};

branches/try/src/librand/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
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)]

0 commit comments

Comments
 (0)