summaryrefslogtreecommitdiff
path: root/src/diag.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-09-15 12:29:42 +0200
committerLaurenz <laurmaedje@gmail.com>2021-09-15 13:05:00 +0200
commitc18321a4c24b1bae9b935e3434aa114f930ca5f5 (patch)
treee6b0aa69c6c7a2855ca498d7c7e8aabe0347297c /src/diag.rs
parent87e776fcebd40cb9628124c19e7e9190b1bd24a5 (diff)
Bugfix and tidying
Diffstat (limited to 'src/diag.rs')
-rw-r--r--src/diag.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/diag.rs b/src/diag.rs
index 61432e93..6249a7cd 100644
--- a/src/diag.rs
+++ b/src/diag.rs
@@ -5,6 +5,7 @@ use serde::{Deserialize, Serialize};
use crate::syntax::{Span, Spanned};
/// Early-return with a vec-boxed [`Error`].
+#[macro_export]
macro_rules! bail {
($span:expr, $message:expr $(,)?) => {
return Err($crate::diag::Error::boxed($span, $message,))