You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since attribute expansion was enabled by default it means that completion doesn't work anymore inside functions annotated with an attribute.
It would be useful if rust-analyzer could detect this case (where the attribute implementation fails to parse the code) and falls back to the old behaviour in that case.
The text was updated successfully, but these errors were encountered:
That would require rather brittle special-casing, wouldn't result in correct completions in all cases, and would relieve pressure from proc macro authors to actually make their macros error resilient (which is the only correct fix). IMO we shouldn't do it.
(Plus it would make it impossible for the macro to intentionally expand to a compiler error.)
See #10520
Since attribute expansion was enabled by default it means that completion doesn't work anymore inside functions annotated with an attribute.
It would be useful if rust-analyzer could detect this case (where the attribute implementation fails to parse the code) and falls back to the old behaviour in that case.
The text was updated successfully, but these errors were encountered: