From 6a1f24865d6bb7d72dac558f7835efcfa4a70bb6 Mon Sep 17 00:00:00 2001 From: gamma0987 Date: Fri, 6 Sep 2024 16:34:04 +0200 Subject: [PATCH] fix(#1): Difference in error message compared to proc-macro-error --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 01a2a9e..a00c924 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -530,7 +530,7 @@ pub mod __export { None => Span::call_site(), }; - let last = match ts.next() { + let last = match ts.last() { Some(t) => t.span(), None => first, };