8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3b93c1 commit 8e69882Copy full SHA for 8e69882
crates/rune/src/diagnostics/emit.rs
@@ -286,6 +286,20 @@ impl FatalDiagnostic {
286
}
287
288
289
+impl WarningDiagnostic {
290
+ /// Generate formatted diagnostics capable of referencing source lines and
291
+ /// hints.
292
+ ///
293
+ /// See [prepare][crate::prepare] for how to use.
294
+ pub fn emit<O>(&self, out: &mut O, sources: &Sources) -> Result<(), EmitError>
295
+ where
296
+ O: WriteColor,
297
+ {
298
+ let config = term::Config::default();
299
+ warning_diagnostics_emit(self, out, sources, &config)
300
+ }
301
+}
302
+
303
impl Unit {
304
/// Dump instructions in a human readable manner.
305
pub fn emit_instructions<O>(
0 commit comments