Skip to content

Commit 5bc7eec

Browse files
committed
---
yaml --- r: 65917 b: refs/heads/master c: 1adbb45 h: refs/heads/master i: 65915: 0974675 v: v3
1 parent a72760a commit 5bc7eec

File tree

4 files changed

+5
-46
lines changed

4 files changed

+5
-46
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: c83bceddbb497464f8e4e1990f7518b009cd61ca
2+
refs/heads/master: 1adbb4520b0f3dafed2e19ace7a61518cc05af4f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/librustc/middle/lang_items.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,5 +441,6 @@ pub fn collect_language_items(crate: @crate,
441441
let mut collector = LanguageItemCollector(crate, session);
442442
collector.collect();
443443
let LanguageItemCollector { items, _ } = collector;
444+
session.abort_if_errors();
444445
items
445446
}

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,18 @@ fn rand_substructure(cx: @ExtCtxt, span: span, substr: &Substructure) -> @expr {
7979
let variant_count = cx.expr_uint(span, variants.len());
8080

8181
// need to specify the uint-ness of the random number
82-
let uint_ty = cx.ty_ident(span, cx.ident_of("uint"));
82+
let u32_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, ~[ uint_ty, r_ty ]);
84+
let rand_name = cx.path_all(span, false, copy rand_ident, None, ~[ u32_ty, r_ty ]);
8585
let rand_name = cx.expr_path(rand_name);
8686

87-
// ::std::rand::Rand::rand::<uint>(rng)
8887
let rv_call = cx.expr_call(span,
8988
rand_name,
9089
~[ rng[0].duplicate(cx) ]);
9190

9291
// rand() % variants.len()
9392
let rand_variant = cx.expr_binary(span, ast::rem,
94-
rv_call, variant_count);
93+
rv_call, variant_count);
9594

9695
let mut arms = do variants.mapi |i, id_sum| {
9796
let i_expr = cx.expr_uint(span, i);

trunk/src/test/run-pass/deriving-global.rs

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)