From 657afc1157fa316a1f1b311e8d54d733e6f50be2 Mon Sep 17 00:00:00 2001 From: Andre Bogus Date: Thu, 15 Oct 2015 16:02:19 +0200 Subject: [PATCH] rustup --- src/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.rs b/src/types.rs index 584f9b34988..af2deb9aa97 100644 --- a/src/types.rs +++ b/src/types.rs @@ -285,9 +285,9 @@ impl LateLintPass for TypeComplexityPass { 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); } } }