Skip to main content

gate

Function gate 

Source
pub fn gate(
    raw: &RawWarning,
    settings: &WarningSettings,
    ignores: &SuppressionMap,
    path: Option<&str>,
) -> Option<Diagnostic>
Expand description

Resolve one RawWarning into a final Diagnostic, or drop it. The only place settings/version/suppression touch a warning — pure, so it is trivially cacheable and testable. Precedence (research/04 §2.3): enable → per-code level → treat-as-errors → scope → suppression.