]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/wf.rs
Auto merge of #26232 - eefriedman:rename-sty, r=nrc
[rust.git] / src / librustc_typeck / check / wf.rs
index c1d260815f6bdc7a1ecf4c64b65e2b6aaf0a3489..779f48d1e1b9e0109ed627fd4e67ee4053f5884b 100644 (file)
@@ -400,7 +400,7 @@ fn report_bound_error<'t>(tcx: &ty::ctxt<'t>,
 
     fn is_ty_param(ty: ty::Ty) -> bool {
         match &ty.sty {
-            &ty::sty::ty_param(_) => true,
+            &ty::TyParam(_) => true,
             _ => false
         }
     }
@@ -566,8 +566,8 @@ fn fold_ty(&mut self, t: Ty<'tcx>) -> Ty<'tcx> {
         }
 
         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);