types: check for macros in type complexity check
This commit is contained in:
parent
371584a637
commit
1587256dc4
1 changed files with 1 additions and 0 deletions
|
@ -259,6 +259,7 @@ fn check_fndecl(cx: &Context, decl: &FnDecl) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check_type(cx: &Context, ty: &ast::Ty) {
|
fn check_type(cx: &Context, ty: &ast::Ty) {
|
||||||
|
if in_external_macro(cx, ty.span) { return; }
|
||||||
let score = {
|
let score = {
|
||||||
let mut visitor = TypeComplexityVisitor { score: 0, nest: 1 };
|
let mut visitor = TypeComplexityVisitor { score: 0, nest: 1 };
|
||||||
visitor.visit_ty(ty);
|
visitor.visit_ty(ty);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue