clippy_utils::check_proc_macro

Function span_matches_pat

Source
fn span_matches_pat(
    sess: &Session,
    span: Span,
    start_pat: Pat,
    end_pat: Pat,
) -> bool
Expand description

Checks if the start and the end of the span’s text matches the patterns. This will return false if the span crosses multiple files or if source is not available.