1
2
3
4
5
6
7
8
9
10
11
12
13
use codespan_reporting::diagnostic::Severity;

use crate::error::report::ReportMessage;

pub struct CompilerCrash {
    message: String,
}

impl From<CompilerCrash> for ReportMessage {
    fn from(value: CompilerCrash) -> Self {
        ReportMessage::new(Severity::Bug, "KC666", value.message)
    }
}