allow rsx to be used outside of a proc_macro context

This commit is contained in:
Evan Almloff committed 2022-05-28 12:10:32 -05:00
1 parent 4b1ea5879d
commit 06390b9be5
8 files changed
+30 -46

No files matched your search

+2 -6
View File
@@ -1,15 +1,11 @@
macro_rules! missing_trailing_comma {
($span:expr) => {
proc_macro_error::emit_error!($span, "missing trailing comma")
return Err(Error::new($span, "missing trailing comma"));
};
}
macro_rules! attr_after_element {
($span:expr) => {
proc_macro_error::emit_error!(
$span,
"expected element";
help = "move the attribute above all the children and text elements"
)
return Err(Error::new($span, "expected element\n = help move the attribute above all the children and text elements"));
};
}