Skip to content

Commit 8a618bd

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 164773 b: refs/heads/try c: 533a47b h: refs/heads/master i: 164771: 66cd8af v: v3
1 parent a21e523 commit 8a618bd

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: f8f2c7a9537c7f333b242f616aefb75a83860927
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70
5-
refs/heads/try: 5d7543b6baf511306ea91ac5f59ae8265ab0b6a3
5+
refs/heads/try: 533a47bd9bb4aebe61af8d7ff9327af8cffdb583
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ mod ziggurat_tables;
208208
// the perf improvement (25-50%) is definitely worth the extra code
209209
// size from force-inlining.
210210
#[inline(always)]
211-
fn ziggurat<R:Rng>(
211+
fn ziggurat<R: Rng, P, Z>(
212212
rng: &mut R,
213213
symmetric: bool,
214214
x_tab: ziggurat_tables::ZigTable,
215215
f_tab: ziggurat_tables::ZigTable,
216-
pdf: |f64|: 'static -> f64,
217-
zero_case: |&mut R, f64|: 'static -> f64)
218-
-> f64 {
216+
mut pdf: P,
217+
mut zero_case: Z)
218+
-> f64 where P: FnMut(f64) -> f64, Z: FnMut(&mut R, f64) -> f64 {
219219
static SCALE: f64 = (1u64 << 53) as f64;
220220
loop {
221221
// reimplement the f64 generation as an optimisation suggested

branches/try/src/librand/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
html_playground_url = "http://play.rust-lang.org/")]
2525

2626
#![feature(macro_rules, phase, globs)]
27+
#![feature(unboxed_closures)]
2728
#![no_std]
2829
#![experimental]
2930

0 commit comments

Comments
 (0)