use std::fmt::Write; use crate::source::{SourceMap, Span}; #[derive(Clone, Debug, PartialEq)] pub struct Label { pub span: Span, pub message: String, } #[derive(Clone, Debug, PartialEq)] pub struct Diagnostic { pub code: &'static str, pub message: String, pub primary: Span, pub related: Vec