]> git.lizzy.rs Git - rust.git/commitdiff
rustup
authorAndre Bogus <bogusandre@gmail.com>
Thu, 15 Oct 2015 14:02:19 +0000 (16:02 +0200)
committerAndre Bogus <bogusandre@gmail.com>
Thu, 15 Oct 2015 14:02:19 +0000 (16:02 +0200)
src/types.rs

index 584f9b349883385ae234c0e793afb657cc113fae..af2deb9aa9720b5baf72e7186bcd75389d432d2b 100644 (file)
@@ -285,9 +285,9 @@ fn check_struct_field(&mut self, cx: &LateContext, field: &StructField) {
 
     fn check_variant(&mut self, cx: &LateContext, var: &Variant, _: &Generics) {
         // StructVariant is covered by check_struct_field
-        if let TupleVariantKind(ref args) = var.node.kind {
+        if let VariantData::Tuple(ref args, _) = *var.node.data {
             for arg in args {
-                check_type(cx, &arg.ty);
+                check_type(cx, &arg.node.ty);
             }
         }
     }