Skip to content

Commit 09fbc06

Browse files
committed
---
yaml --- r: 63336 b: refs/heads/snap-stage3 c: 1adbb45 h: refs/heads/master v: v3
1 parent 6edd4d6 commit 09fbc06

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,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c83bceddbb497464f8e4e1990f7518b009cd61ca
4+
refs/heads/snap-stage3: 1adbb4520b0f3dafed2e19ace7a61518cc05af4f
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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
}

branches/snap-stage3/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);

branches/snap-stage3/src/test/run-pass/deriving-global.rs

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

0 commit comments

Comments
 (0)