pub fn emit_diagnostic(
filename: &str,
span: Range<usize>,
message: String,
code: &str,
) -> !Expand description
Records Diagnostic data in the active sink and unwinds to the enclosing
collect_diagnostic call. Must only be called when diagnostics_enabled().
The three error funnels are fatal-on-first-error (they return !), so a
single slot is enough: the first error to fire is the one reported.