proc_macro::quote
cannot be made useful for rust-analyzer
#16464
Labels
A-proc-macro
proc macro
C-Architecture
Big architectural things which we need to figure up-front (or suggestions for rewrites :0) )
C-tracking-issue
Category: tracking issue
S-unactionable
Issue requires feedback, design decisions or is blocked on other work
Macro in question: https://doc.rust-lang.org/proc_macro/macro.quote.html
What do I mean with this? Basically rust-analyzer cannot make use of the spans the macro generated, as these spans are generated and stored (via
save_span
) at compilation time of the macro, then loaded (viaload_span
) by the proc macro server when executed. rust-analyzer is not the tool that compiles the proc-macros though, so we are not the one saving any spans and as such we also can't really load them (even if we go through the artifacts produced, their representation differs from our spans). So for r-a to be able to make use of this feature (should it ever get stabilized), the implementation details would need to change in some way and/or r-a needs to be the one compiling the proc-macros somehow.The text was updated successfully, but these errors were encountered: