summaryrefslogtreecommitdiff
path: root/src/syntax/test.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-07-26 17:28:43 +0200
committerLaurenz <laurmaedje@gmail.com>2020-07-26 17:28:43 +0200
commite2ef4f64e777f293a0408d0f60cfed9de69c7bb6 (patch)
tree616ae4474f0dec5cc70fe3fa46b5f3c4b305a1be /src/syntax/test.rs
parent0e8c2cad6e4fee283f8f2d6fb9a571173b59fda2 (diff)
Rename errors to problems and make error! macro more ergonomic 🧼
Also adds a `warning!` macro.
Diffstat (limited to 'src/syntax/test.rs')
-rw-r--r--src/syntax/test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/test.rs b/src/syntax/test.rs
index 47680487..465f475a 100644
--- a/src/syntax/test.rs
+++ b/src/syntax/test.rs
@@ -29,7 +29,7 @@ where T: Debug + PartialEq + SpanlessEq {
/// spanned![(0:0, 0:5, "hello"), (0:5, 0:3, "world")]
/// ```
/// The span information can simply be omitted to create a vector with items
-/// that are spanned with dummy zero spans.
+/// that are spanned with zero spans.
macro_rules! spanned {
(item ($sl:tt:$sc:tt, $el:tt:$ec:tt, $v:expr)) => ({
#[allow(unused_imports)]
@@ -80,7 +80,7 @@ function! {
}
}
- layout(self, ctx, errors) { vec![] }
+ layout(self, ctx, f) { vec![] }
}
/// Compares elements by only looking at values and ignoring spans.