@@ -4266,8 +4266,7 @@ pub fn is_binopable(cx: ctxt, ty: t, op: ast::BinOp) -> bool {
4266
4266
static tycat_char: int = 2 ;
4267
4267
static tycat_int: int = 3 ;
4268
4268
static tycat_float: int = 4 ;
4269
- static tycat_struct: int = 5 ;
4270
- static tycat_bot: int = 6 ;
4269
+ static tycat_bot: int = 5 ;
4271
4270
4272
4271
static opcat_add: int = 0 ;
4273
4272
static opcat_sub: int = 1 ;
@@ -4310,7 +4309,6 @@ pub fn is_binopable(cx: ctxt, ty: t, op: ast::BinOp) -> bool {
4310
4309
ty_bool => tycat_bool,
4311
4310
ty_int( _) | ty_uint( _) | ty_infer( IntVar ( _) ) => tycat_int,
4312
4311
ty_float( _) | ty_infer( FloatVar ( _) ) => tycat_float,
4313
- ty_tup( _) | ty_enum( _, _) => tycat_struct,
4314
4312
ty_bot => tycat_bot,
4315
4313
_ => tycat_other
4316
4314
}
@@ -4326,8 +4324,7 @@ pub fn is_binopable(cx: ctxt, ty: t, op: ast::BinOp) -> bool {
4326
4324
/*char*/ [ f, f, f, f, t, t, f, f] ,
4327
4325
/*int*/ [ t, t, t, t, t, t, t, f] ,
4328
4326
/*float*/ [ t, t, t, f, t, t, f, f] ,
4329
- /*bot*/ [ f, f, f, f, f, f, f, f] ,
4330
- /*struct*/ [ t, t, t, t, f, f, t, t] ] ;
4327
+ /*bot*/ [ t, t, t, t, f, f, t, t] ] ;
4331
4328
4332
4329
return tbl[ tycat ( cx, ty) ] [ opcat ( op) ] ;
4333
4330
}
0 commit comments