-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Wrong path attribute handling in inline modules #4180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Huh, so the path is relative to a hypothetical |
From the tests it looks like we should already do this correctly, so the first step would probably be adding this case as a test to see whether it breaks... |
@flodiebold yeah, so, what happens is basically like this:
|
I'm unable to reproduce this, is there a repo available with the required directory layout? Or maybe this has just been fixed in the meantime |
Could it have been fixed in #9353? |
Seems unlikely, all files are below |
Ah, right. |
I can try to remember to check on if this is still a problem, though i think that i have updated the repo to work around this issue. |
I'm going to just close this. The current version of the crate doesn't seem to have the problem anymore, so I can't reproduce it. |
Uh oh!
There was an error while loading. Please reload this page.
This seems related to #3898 but my file is inside the workspace so even if files outside the workspace aren't supported, I think that my use case should be.
I've got a crate that deals with CPU intrinsics. As I'm sure you're aware, x86 and x86_64 are very closely related. I want to write CPU specific modules but also I want to write things once and then use it in both places as much as possible.
This leads to a file system that looks like this:
And then a lib.rs that looks like this:
Now the compiler itself is totally able to follow those relative paths from the fake x86 directory up one level to
src/
and then down intosrc/intel_family/
and get the code where it's supposed to go. RA just shows fake errors about unresolved module because it doesn't understand.The text was updated successfully, but these errors were encountered: