Skip to content

Commit 7ab1f7a

Browse files
committed
---
yaml --- r: 58711 b: refs/heads/try c: 2ae44a0 h: refs/heads/master i: 58709: edd6af3 58707: cf9eb2d 58703: f140533 v: v3
1 parent b954d4d commit 7ab1f7a

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: c081ffbd1e845687202a975ea2e698b623e5722f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 213f7b24ccd9a6833af7e1a329c5e7ffc8f9e3d2
5-
refs/heads/try: 76f7207af22d1c64280b1dcbf7d99d198781e0b2
5+
refs/heads/try: 2ae44a07a9d508d0ad413e70d3152a0f4a087976
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/librustc/middle/ty.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,16 +1253,6 @@ 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-
12661256
pub fn walk_ty(ty: t, f: &fn(t)) {
12671257
maybe_walk_ty(ty, |t| { f(t); true });
12681258
}

branches/try/src/librustc/middle/typeck/infer/combine.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,8 @@ 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, _) |
483485
(ty::ty_int(_), _) |
484486
(ty::ty_uint(_), _) |
485487
(ty::ty_float(_), _) => {
@@ -490,16 +492,6 @@ pub fn super_tys<C:Combine>(
490492
}
491493
}
492494

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-
503495
(ty::ty_param(ref a_p), ty::ty_param(ref b_p)) if a_p.idx == b_p.idx => {
504496
Ok(a)
505497
}

0 commit comments

Comments
 (0)