pub fn match_severity(line: &str) -> Option<ErrorSeverity>Expand description
CM.3c: the severity a single *compilation* line declares, or None
when it carries no severity keyword. Reuses the built-in rustc-header
and gnu-full-form patterns (via [crate::parsers::match_severity]) —
the same compiled regexes the streaming parsers use. Keyword-driven:
progress / summary / prose / location (-->) / gnu-short lines return
None. The severity gutter mark lands on the line where the severity is
textually visible (the rustc header line; the gnu full-form line),
mirroring emacs compilation-mode.