Function clippy_utils::check_proc_macro::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.