Is the std::file!() macro supposed to inline to "file" when ran in an editor? #18942
-
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The |
Beta Was this translation helpful? Give feedback.
The
file
macro is currently unimplemented in rust-analyzer and so its stubbed with outputtingfile
. Looking at the proc-macro, its also using theproc_macro_span
feature which is not fully implemented by rust-analyzer yet either. So unfortunately rust-analyzer will error for your setup here (you can add the error code being emitted torust-analyzer.diagnostics.disabled
to suppress it for the time being)