From 4665b04cc567ce1a7f9584ab2af0f473420092d6 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Sat, 1 Feb 2025 11:35:59 -0500 Subject: [PATCH] fix error span --- leptos_macro/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leptos_macro/src/lib.rs b/leptos_macro/src/lib.rs index dfd124835d..dfd8851507 100644 --- a/leptos_macro/src/lib.rs +++ b/leptos_macro/src/lib.rs @@ -688,7 +688,7 @@ fn component_macro( } } Err(e) => { - proc_macro_error2::abort!(e); + proc_macro_error2::abort!(e.span(), e); } } }.into()