Skip to main content

is_lint_pass_required

Function is_lint_pass_required 

Source
pub fn is_lint_pass_required(
    skippable: &UnordSet<LintId>,
    lints: &LintVec,
) -> bool
Expand description

Is a pass (which contains lints) required to run? Maybe not, e.g. for dependencies built with --cap-lints=allow.

Note: this is a conservative estimate intended for optimization purposes. It might return true for a pass that need not run, but it will never return false for a pass that must run.