mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-02 02:46:06 +00:00
types: check for macros in type complexity check
This commit is contained in:
parent
371584a637
commit
1587256dc4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user