Skip to main content

lookup

Function lookup 

Source
pub fn lookup(code: &str) -> Option<&'static DiagnosticInfo>
Expand description

Look up a code’s registry entry by exact match — the one place crate::error::Severity::for_error reads a code’s severity, instead of hardcoding its own copy of the (small) warning set.