@@ -72,6 +72,8 @@ println!("{:?}", tuple_ptr)
72
72
73
73
#![ feature( macro_rules, managed_boxes, phase) ]
74
74
75
+ #![ allow( visible_private_types) ] // NOTE: remove after a stage0 snap
76
+
75
77
#[ cfg( test) ]
76
78
#[ phase( syntax, link) ] extern crate log;
77
79
@@ -407,12 +409,12 @@ pub fn rng() -> StdRng {
407
409
/// The standard RNG. This is designed to be efficient on the current
408
410
/// platform.
409
411
#[ cfg( not( target_word_size="64" ) ) ]
410
- pub struct StdRng { priv rng: IsaacRng }
412
+ pub struct StdRng { rng : IsaacRng }
411
413
412
414
/// The standard RNG. This is designed to be efficient on the current
413
415
/// platform.
414
416
#[ cfg( target_word_size="64" ) ]
415
- pub struct StdRng { priv rng: Isaac64Rng }
417
+ pub struct StdRng { rng : Isaac64Rng }
416
418
417
419
impl StdRng {
418
420
/// Create a randomly seeded instance of `StdRng`.
@@ -489,10 +491,10 @@ pub fn weak_rng() -> XorShiftRng {
489
491
/// RNGs"](http://www.jstatsoft.org/v08/i14/paper). *Journal of
490
492
/// Statistical Software*. Vol. 8 (Issue 14).
491
493
pub struct XorShiftRng {
492
- priv x: u32 ,
493
- priv y: u32 ,
494
- priv z: u32 ,
495
- priv w: u32 ,
494
+ x : u32 ,
495
+ y : u32 ,
496
+ z : u32 ,
497
+ w : u32 ,
496
498
}
497
499
498
500
impl Rng for XorShiftRng {
@@ -573,8 +575,8 @@ pub struct TaskRng {
573
575
// The use of unsafe code here is OK if the invariants above are
574
576
// satisfied; and it allows us to avoid (unnecessarily) using a
575
577
// GC'd or RC'd pointer.
576
- priv rng: * mut TaskRngInner ,
577
- priv marker : marker:: NoSend ,
578
+ rng : * mut TaskRngInner ,
579
+ marker : marker:: NoSend ,
578
580
}
579
581
580
582
// used to make space in TLS for a random number generator
0 commit comments