Skip to content

Commit 5172cff

Browse files
committed
---
yaml --- r: 58035 b: refs/heads/snap-stage3 c: 76f7207 h: refs/heads/master i: 58033: fd7b944 58031: 0cdfcd2 v: v3
1 parent 59281f6 commit 5172cff

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
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: c081ffbd1e845687202a975ea2e698b623e5722f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 87c46b548a5c9d3183a7d76db8c2e0660f917130
4+
refs/heads/snap-stage3: 76f7207af22d1c64280b1dcbf7d99d198781e0b2
55
refs/heads/try: bf67eb2362b7d0f37012f2d6dac604c3bbacd2c6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/ty.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,16 @@ pub fn mk_opaque_closure_ptr(cx: ctxt, sigil: ast::Sigil) -> t {
12531253

12541254
pub fn mk_opaque_box(cx: ctxt) -> t { mk_t(cx, ty_opaque_box) }
12551255

1256+
// Converts s to its machine type equivalent
1257+
pub fn mach_sty(cfg: @session::config, t: t) -> sty {
1258+
match get(t).sty {
1259+
ty_int(ast::ty_i) => ty_int(cfg.int_type),
1260+
ty_uint(ast::ty_u) => ty_uint(cfg.uint_type),
1261+
ty_float(ast::ty_f) => ty_float(cfg.float_type),
1262+
ref s => (/*bad*/copy *s)
1263+
}
1264+
}
1265+
12561266
pub fn walk_ty(ty: t, f: &fn(t)) {
12571267
maybe_walk_ty(ty, |t| { f(t); true });
12581268
}

branches/snap-stage3/src/librustc/middle/typeck/infer/combine.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,6 @@ pub fn super_tys<C:Combine>(
480480
unify_float_variable(self, !self.a_is_expected(), v_id, v)
481481
}
482482

483-
(ty::ty_nil, _) |
484-
(ty::ty_bool, _) |
485483
(ty::ty_int(_), _) |
486484
(ty::ty_uint(_), _) |
487485
(ty::ty_float(_), _) => {
@@ -492,6 +490,16 @@ pub fn super_tys<C:Combine>(
492490
}
493491
}
494492

493+
(ty::ty_nil, _) |
494+
(ty::ty_bool, _) => {
495+
let cfg = tcx.sess.targ_cfg;
496+
if ty::mach_sty(cfg, a) == ty::mach_sty(cfg, b) {
497+
Ok(a)
498+
} else {
499+
Err(ty::terr_sorts(expected_found(self, a, b)))
500+
}
501+
}
502+
495503
(ty::ty_param(ref a_p), ty::ty_param(ref b_p)) if a_p.idx == b_p.idx => {
496504
Ok(a)
497505
}

branches/snap-stage3/src/libstd/flatpipes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ mod test {
678678
}
679679
680680
#[test]
681+
#[ignore(reason = "FIXME #6211 failing on linux snapshot machine")]
681682
fn test_serializing_pipes() {
682683
let (port, chan) = serial::pipe_stream();
683684

0 commit comments

Comments
 (0)