nrxus / faux

Struct mocking library for Rust
https://nrxus.github.io/faux/
MIT License
411 stars 14 forks source link

Improve errors #23

Closed TedDriggs closed 4 years ago

TedDriggs commented 4 years ago

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

nrxus commented 4 years ago

oh wow, thanks a lot for this, it looks great!

As long as all the current tests pass I am happy with this without adding tests that verify the compiler error messages.

Thanks!