//! Sub-classifier for `CompilerError::InternalError` codes.
/// Audit2 B32: pick a specific internal-error code based on the leading
/// subsystem prefix on the `detail` string. Returns `"E999"` (generic)
/// for any prefix the table doesn't know.
pub(super)fninternal_error_code(detail:&str)->&'staticstr{if detail.starts_with("IR lowering:"){"E931"}elseif detail.starts_with("monomorphise:"){"E932"}elseif detail.contains("id ")&& detail.contains("registration lookup"){"E933"}elseif detail.contains("inferred-enum"){"E934"}else{"E999"}}