file!() macro return absolute path in doc-test compile #46372
Labels
A-doctests
Area: Documentation tests, run by rustdoc
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
This a minimal example. Standard compilation resolve
file!()
macro as relative project path but doc-test compilation emit follow error:This behavior involve just
include!()
macro because when used in function or assignment works like as expectedNow I should disable doc-test to use
file!()
for including some auto-generated code.The text was updated successfully, but these errors were encountered: