-
Notifications
You must be signed in to change notification settings - Fork 81
feat: pavex methods error #558
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
feat: pavex methods error #558
Conversation
…that doesn't contain #[pavex::*]
runtime/pavex_macros/src/methods.rs
Outdated
|
|
||
| if no_pavex_method { | ||
| return Err(syn::Error::new_spanned( | ||
| &impl_, |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
A test case would probably be a good idea. |
|
Thanks for picking this up! |
|
@peddermaster2 , yes i have updated it, now it only renders the call site @LukeMathWalker , I have implemented fail test cases |
Looking nice! |
|
@LukeMathWalker , yeah that would be nice but we are constrained as the span::join is nightly-only another workaround is error.combine but that leaves us with two errors and it looks bad what do you suggest? |
|
/ok-to-test sha=de1373c |
I think we may be able to work around the lack of |
we cant do that reliably ig as the should i commit this instead? if it looks good enough |
It looks good if the impl header is small enough, but I'm afraid it won't scale very well on larger impls. Let's leave things as they are for now. |
implements issue #537
i have explained the error in detail