Merge pull request #222 from birkenfeld/type_complexity

types: check for macros in type complexity check
This commit is contained in:
Manish Goregaokar 2015-08-22 18:28:45 +05:30
commit 29c602c7ac

View file

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