@@ -4266,8 +4266,7 @@ pub fn is_binopable(cx: ctxt, ty: t, op: ast::BinOp) -> bool {
42664266 static tycat_char: int = 2 ;
42674267 static tycat_int: int = 3 ;
42684268 static tycat_float: int = 4 ;
4269- static tycat_struct: int = 5 ;
4270- static tycat_bot: int = 6 ;
4269+ static tycat_bot: int = 5 ;
42714270
42724271 static opcat_add: int = 0 ;
42734272 static opcat_sub: int = 1 ;
@@ -4310,7 +4309,6 @@ pub fn is_binopable(cx: ctxt, ty: t, op: ast::BinOp) -> bool {
43104309 ty_bool => tycat_bool,
43114310 ty_int( _) | ty_uint( _) | ty_infer( IntVar ( _) ) => tycat_int,
43124311 ty_float( _) | ty_infer( FloatVar ( _) ) => tycat_float,
4313- ty_tup( _) | ty_enum( _, _) => tycat_struct,
43144312 ty_bot => tycat_bot,
43154313 _ => tycat_other
43164314 }
@@ -4326,8 +4324,7 @@ pub fn is_binopable(cx: ctxt, ty: t, op: ast::BinOp) -> bool {
43264324 /*char*/ [ f, f, f, f, t, t, f, f] ,
43274325 /*int*/ [ t, t, t, t, t, t, t, f] ,
43284326 /*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] ] ;
43314328
43324329 return tbl[ tycat ( cx, ty) ] [ opcat ( op) ] ;
43334330}
0 commit comments