-
Notifications
You must be signed in to change notification settings - Fork 152
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
Support tracked methods without self #585
Comments
Mentoring instructionsTracked methods are defined in the proc macro here: salsa/components/salsa-macros/src/tracked_impl.rs Lines 33 to 43 in a20b894
It works by modifying tracked methods in place with this method: salsa/components/salsa-macros/src/tracked_impl.rs Lines 45 to 53 in a20b894
so that they expand to a call to the salsa/components/salsa-macro-rules/src/setup_method_body.rs Lines 23 to 38 in a20b894
We need to modify these to be a bit more general. |
This is an error today:
...but why? I can still desugar this relatively easily to a regular function calling
__unit
(see below), so why can't the macro do it?The text was updated successfully, but these errors were encountered: