Merge pull request #395 from Manishearth/rustup

rustup
This commit is contained in:
llogiq 2015-10-15 16:24:04 +02:00
commit a7270adbd7
2 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}
}

View File

@ -17,6 +17,7 @@ struct TS(Vec<Vec<Box<(u32, u32, u32, u32)>>>); //~ERROR very complex type
enum E {
V1(Vec<Vec<Box<(u32, u32, u32, u32)>>>), //~ERROR very complex type
//~^ERROR very complex type
V2 { f: Vec<Vec<Box<(u32, u32, u32, u32)>>> }, //~ERROR very complex type
}