]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/hir/lowering/item.rs
Rename `Ty.node` to `Ty.kind`
[rust.git] / src / librustc / hir / lowering / item.rs
index c0540c8e94d56ed30a97f59297ff1cdd1e8163c1..14311585652c352906313a0d626e52a3f7061730 100644 (file)
@@ -789,7 +789,7 @@ fn lower_variant_data(&mut self, vdata: &VariantData) -> hir::VariantData {
     }
 
     fn lower_struct_field(&mut self, (index, f): (usize, &StructField)) -> hir::StructField {
-        let ty = if let TyKind::Path(ref qself, ref path) = f.ty.node {
+        let ty = if let TyKind::Path(ref qself, ref path) = f.ty.kind {
             let t = self.lower_path_ty(
                 &f.ty,
                 qself,
@@ -1343,7 +1343,7 @@ pub(super) fn lower_generics(
                             );
                         };
                         // Check if the where clause type is a plain type parameter.
-                        match bound_pred.bounded_ty.node {
+                        match bound_pred.bounded_ty.kind {
                             TyKind::Path(None, ref path)
                                 if path.segments.len() == 1
                                     && bound_pred.bound_generic_params.is_empty() =>