Skip to content

Commit 1a50755

Browse files
author
scott-linder
committed
Document check_ty and its new is_local arg.
1 parent 49bba31 commit 1a50755

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clippy_lints/src/types.rs

+5
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ fn check_fn_decl(cx: &LateContext, decl: &FnDecl) {
129129
}
130130
}
131131

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.
132137
fn check_ty(cx: &LateContext, ast_ty: &hir::Ty, is_local: bool) {
133138
if in_macro(ast_ty.span) {
134139
return;

0 commit comments

Comments
 (0)