From 1587256dc4651bbc53793fb461f1a22c6f65fc5c Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 22 Aug 2015 14:30:53 +0200 Subject: [PATCH] types: check for macros in type complexity check --- src/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types.rs b/src/types.rs index 54c36535286..cd7a5dc3729 100644 --- a/src/types.rs +++ b/src/types.rs @@ -259,6 +259,7 @@ fn check_fndecl(cx: &Context, decl: &FnDecl) { } fn check_type(cx: &Context, ty: &ast::Ty) { + if in_external_macro(cx, ty.span) { return; } let score = { let mut visitor = TypeComplexityVisitor { score: 0, nest: 1 }; visitor.visit_ty(ty);