From e2ef4f64e777f293a0408d0f60cfed9de69c7bb6 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 26 Jul 2020 17:28:43 +0200 Subject: =?UTF-8?q?Rename=20errors=20to=20problems=20and=20make=20error!?= =?UTF-8?q?=20macro=20more=20ergonomic=20=F0=9F=A7=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also adds a `warning!` macro. --- src/syntax/test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/syntax/test.rs') 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. -- cgit v1.2.3