Skip to content

Commit

Permalink
fixup! 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 b5c3478 commit 2fc1f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydroflow_lang/src/diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl Diagnostic {
}
}

/// Used to emulate [`Diagnostic::emit`] by turning this diagnostic into a properly spanned [`TokenStream`]
/// Used to emulate `proc_macro::Diagnostic::emit` by turning this diagnostic into a properly spanned [`TokenStream`]
/// that emits an error via `compile_error!(...)` with this diagnostic's message.
pub fn to_tokens(&self) -> TokenStream {
let msg_lit: Literal = Literal::string(&self.message);
Expand Down

0 comments on commit 2fc1f4e

Please sign in to comment.