All macro validations now return spanned darling::Error instances.
This produces compile-time errors in the right places in input source code.
Largely fixes #7, though unwrap() calls can still cause the macro to fail.
PR Notes
Testing of the errors was done by deliberately breaking arbitrary_self.rs, but those changes weren't committed. It's possible to do compile-error tests for proc-macro crates, but it's not easy.
SelfType got some new methods to reduce boilerplate in other files.
All macro validations now return spanned darling::Error instances. This produces compile-time errors in the right places in input source code.
Largely fixes #7, though unwrap() calls can still cause the macro to fail.
PR Notes
arbitrary_self.rs
, but those changes weren't committed. It's possible to do compile-error tests for proc-macro crates, but it's not easy.SelfType
got some new methods to reduce boilerplate in other files.