-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explicitely create UninitializedField errors #192
Explicitely create UninitializedField errors #192
Conversation
d686cda
to
758b879
Compare
I think I'm understanding the mechanics of what's happening; can you provide a bit more context on the rationale for the shift here? |
My initial implementation of error type had an assumption that Additionally this PR relaxes requirements for |
I'm trying a different approach to this. In The generated We'd then accept
That makes it easier to avoid allocating in #181, and makes it easier for the macro and its caller to provide a custom error type: The macro gets to stick with using |
@TedDriggs Somehow I had an impression, runtime dependency is unwanted. Right now, So, some (let's say |
When thinking about
The goal is that crate B does not need to import We technically already have a runtime dependency, insofar as we use |
@TedDriggs And what about custom validator? Do you want to force user to provide a custom error type when validator is specified? If not, should the crate export error enum (like it is defined in master branch right now)? But looks like a discussion shifted from original problem. This PR fixes the potential issue when custom error type implements |
You're right that the conversation is wandering a bit here; your initial |
Superseded by #194 |
No description provided.