fn is_ty_param(ty: ty::Ty) -> bool {
match &ty.sty {
- &ty::sty::ty_param(_) => true,
+ &ty::TyParam(_) => true,
_ => false
}
}
}
match t.sty{
- ty::ty_struct(type_id, substs) |
- ty::ty_enum(type_id, substs) => {
+ ty::TyStruct(type_id, substs) |
+ ty::TyEnum(type_id, substs) => {
let type_predicates = ty::lookup_predicates(self.fcx.tcx(), type_id);
let bounds = self.fcx.instantiate_bounds(self.span, substs,
&type_predicates);