File tree Expand file tree Collapse file tree 3 files changed +3
-21
lines changed
branches/auto/src/librustc/middle Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: 76f7207af22d1c64280b1dcbf7d99d198781e0b2
17
+ refs/heads/auto: 2ae44a07a9d508d0ad413e70d3152a0f4a087976
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
19
19
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
Original file line number Diff line number Diff line change @@ -1253,16 +1253,6 @@ pub fn mk_opaque_closure_ptr(cx: ctxt, sigil: ast::Sigil) -> t {
1253
1253
1254
1254
pub fn mk_opaque_box ( cx : ctxt ) -> t { mk_t ( cx, ty_opaque_box) }
1255
1255
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
-
1266
1256
pub fn walk_ty ( ty : t , f : & fn ( t ) ) {
1267
1257
maybe_walk_ty ( ty, |t| { f ( t) ; true } ) ;
1268
1258
}
Original file line number Diff line number Diff line change @@ -480,6 +480,8 @@ pub fn super_tys<C:Combine>(
480
480
unify_float_variable ( self , !self . a_is_expected ( ) , v_id, v)
481
481
}
482
482
483
+ ( ty:: ty_nil, _) |
484
+ ( ty:: ty_bool, _) |
483
485
( ty:: ty_int( _) , _) |
484
486
( ty:: ty_uint( _) , _) |
485
487
( ty:: ty_float( _) , _) => {
@@ -490,16 +492,6 @@ pub fn super_tys<C:Combine>(
490
492
}
491
493
}
492
494
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
-
503
495
( ty:: ty_param( ref a_p) , ty:: ty_param( ref b_p) ) if a_p. idx == b_p. idx => {
504
496
Ok ( a)
505
497
}
You can’t perform that action at this time.
0 commit comments