Skip to content

Commit

Permalink
fixup! try emit diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Dec 10, 2024
1 parent d213cb5 commit b5c3478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydroflow_lang/src/diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<S = Span> {
/// Span (source code location).
Expand Down

0 comments on commit b5c3478

Please sign in to comment.