Skip to content

Is the std::file!() macro supposed to inline to "file" when ran in an editor? #18942

Answered by Veykril
LexiBigCheese asked this question in Q&A
Discussion options

You must be logged in to vote

The file macro is currently unimplemented in rust-analyzer and so its stubbed with outputting file. Looking at the proc-macro, its also using the proc_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 to rust-analyzer.diagnostics.disabled to suppress it for the time being)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@LexiBigCheese
Comment options

@lnicola
Comment options

lnicola Jan 16, 2025
Collaborator

@LexiBigCheese
Comment options

@LexiBigCheese
Comment options

@lnicola
Comment options

lnicola Jan 16, 2025
Collaborator

Answer selected by LexiBigCheese
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants