Skip to content

Commit c90b690

Browse files
committed
---
yaml --- r: 65876 b: refs/heads/master c: e6c3e4a h: refs/heads/master v: v3
1 parent b7946ec commit c90b690

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f93a974558bf09bee475427158150ba6e008cdd8
2+
refs/heads/master: e6c3e4a000557580e75464f843714bd34ae00c99
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/libsyntax/ext/deriving/rand.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ fn rand_substructure(cx: @ExtCtxt, span: span, substr: &Substructure) -> @expr {
7878

7979
let variant_count = cx.expr_uint(span, variants.len());
8080

81-
// need to specify the u32-ness of the random number
82-
let u32_ty = cx.ty_ident(span, cx.ident_of("u32"));
81+
// need to specify the uint-ness of the random number
82+
let uint_ty = cx.ty_ident(span, cx.ident_of("uint"));
8383
let r_ty = cx.ty_ident(span, cx.ident_of("R"));
84-
let rand_name = cx.path_all(span, true, copy rand_ident, None, ~[ u32_ty, r_ty ]);
84+
let rand_name = cx.path_all(span, true, copy rand_ident, None, ~[ uint_ty, r_ty ]);
8585
let rand_name = cx.expr_path(rand_name);
8686

87-
// ::std::rand::Rand::rand::<u32>(rng)
87+
// ::std::rand::Rand::rand::<uint>(rng)
8888
let rv_call = cx.expr_call(span,
8989
rand_name,
9090
~[ rng[0].duplicate(cx) ]);

0 commit comments

Comments
 (0)