Skip to main content

is_advisory_only_code

Function is_advisory_only_code 

Source
pub fn is_advisory_only_code(code: &str) -> bool
Expand description

Whether a rendered diagnostic code string (e.g. "E1004") is advisory-only.

The string-keyed counterpart to ErrorCode::is_advisory_only, for consumers (the CLI check/lint split) that only carry the code string. Keeping it here means the set of advisory-only codes lives in one place.