We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
check_ty
is_local
1 parent 49bba31 commit 1a50755Copy full SHA for 1a50755
clippy_lints/src/types.rs
@@ -129,6 +129,11 @@ fn check_fn_decl(cx: &LateContext, decl: &FnDecl) {
129
}
130
131
132
+/// Recursively check for `TypePass` lints in the given type. Stop at the first
133
+/// lint found.
134
+///
135
+/// The parameter `is_local` distinguishes the context of the type; types from
136
+/// local bindings should only be checked for the `BORROWED_BOX` lint.
137
fn check_ty(cx: &LateContext, ast_ty: &hir::Ty, is_local: bool) {
138
if in_macro(ast_ty.span) {
139
return;
0 commit comments