From: bors Date: Thu, 3 Apr 2014 10:42:02 +0000 (-0700) Subject: auto merge of #13244 : cmr/rust/tbaa, r=alexcrichton X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=6f1c06d6a1b97fcd80d85c38bb33f8350c750401;p=rust.git auto merge of #13244 : cmr/rust/tbaa, r=alexcrichton --- 6f1c06d6a1b97fcd80d85c38bb33f8350c750401 diff --cc src/librustc/middle/ty.rs index 176ed409dd4,1a12c0ab6ac..f9296926c74 --- a/src/librustc/middle/ty.rs +++ b/src/librustc/middle/ty.rs @@@ -4365,16 -4181,9 +4188,9 @@@ pub fn is_binopable(cx: &ctxt, ty: t, o /*bot*/ [t, t, t, t, t, t, t, t], /*raw ptr*/ [f, f, f, f, t, t, f, f]]; - return tbl[tycat(cx, ty)][opcat(op)]; + return tbl[tycat(cx, ty) as uint ][opcat(op) as uint]; } - pub fn ty_params_to_tys(tcx: &ctxt, generics: &ast::Generics) -> Vec { - Vec::from_fn(generics.ty_params.len(), |i| { - let id = generics.ty_params.get(i).id; - ty::mk_param(tcx, i, ast_util::local_def(id)) - }) - } - /// Returns an equivalent type with all the typedefs and self regions removed. pub fn normalize_ty(cx: &ctxt, t: t) -> t { let u = TypeNormalizer(cx).fold_ty(t);