You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the relative file path is present relative to the root of the workspace, I expected to see builds, tests, and doctests for the crate to pass.
Instead, this happened:
Builds and tests both pass, as the file is found.
Doctests fail to compile, stating that the file cannot be found.
It appears that in a virtual workspace that:
In build, test: the current working directory is the root of the workspace.
In doctest: the current working directory is the root of the crate where the doctest lives.
The current working directory should be consistent between build, test, and doctest, otherwise proc-macros that load files cannot reliably and consistently load a relative path.
I tried this code in a crate that is in a virtual workspace:
I expected to see this happen:
Instead, this happened:
It appears that in a virtual workspace that:
The current working directory should be consistent between build, test, and doctest, otherwise proc-macros that load files cannot reliably and consistently load a relative path.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: