From b5c3478260017db3f2b8861caf9e190963f68fd4 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Tue, 10 Dec 2024 13:34:15 -0800 Subject: [PATCH] fixup! try emit diagnostics --- hydroflow_lang/src/diagnostic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hydroflow_lang/src/diagnostic.rs b/hydroflow_lang/src/diagnostic.rs index f733911ef2dd..1ee8d881d77e 100644 --- a/hydroflow_lang/src/diagnostic.rs +++ b/hydroflow_lang/src/diagnostic.rs @@ -40,8 +40,8 @@ impl Level { /// Diagnostic. A warning or error (or lower [`Level`]) with a message and span. Shown by IDEs /// usually as a squiggly red or yellow underline. /// -/// Must call [`Diagnostic::emit`] or manually emit the output of [`Diagnostic::to_tokens`] for the -/// diagnostic to show up. +/// Diagnostics must be emitted via [`Diagnostic::try_emit`], [`Diagnostic::to_tokens`], or +/// [`Diagnostic::try_emit_all`] for diagnostics to show up. #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Diagnostic { /// Span (source code location).