Proc macro generating include!
or include_str!
is not expanded correctly if including files from the target folder
#16343
Labels
rust-analyzer version: rust-analyzer version: 0.4.1801-standalone
rustc version: rustc 1.75.0 (82e1608df 2023-12-21)
Reproducer: https://github.com/tomasol/ra-proc-macro-including-target
I want to use a proc macro which
include!
s some generated rust files from thetarget
directory. RA cannot expand the macro properly, but only when the included file resides in the target directory. Needed for fixing this issue in cargo-componentComment from the issue:
When reproducing the issue there was no difference between the project being part of a workspace or not.
The text was updated successfully, but these errors were encountered: