Skip to content

Commit

Permalink
Document check_ty and its new is_local arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-linder committed Jun 12, 2017
1 parent 49bba31 commit 1a50755
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clippy_lints/src/types.rs
Expand Up @@ -129,6 +129,11 @@ fn check_fn_decl(cx: &LateContext, decl: &FnDecl) {
}
}

/// Recursively check for `TypePass` lints in the given type. Stop at the first
/// lint found.
///
/// The parameter `is_local` distinguishes the context of the type; types from
/// local bindings should only be checked for the `BORROWED_BOX` lint.
fn check_ty(cx: &LateContext, ast_ty: &hir::Ty, is_local: bool) {
if in_macro(ast_ty.span) {
return;
Expand Down

0 comments on commit 1a50755

Please sign in to comment.