-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Dep info contains invalid file paths when rustc-macro is used #36625
Comments
53 tasks
Added this to the macros 1.1 tracking issue #35900 (I consider this a blocker for stabilization) |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Sep 27, 2016
This "special filename" is surrounded by `<>` to ensure that `FileMap::is_real_file` returns `false`. This way the "files" parsed here aren't emitted as dep info `.d` files and don't confuse Cargo about non-existent files. Closes rust-lang#36625
bors
added a commit
that referenced
this issue
Sep 28, 2016
rustc: Use a special filename for macros 1.1 This "special filename" is surrounded by `<>` to ensure that `FileMap::is_real_file` returns `false`. This way the "files" parsed here aren't emitted as dep info `.d` files and don't confuse Cargo about non-existent files. Closes #36625
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Noticed it causing issues with cargo as it uses
--emit=dep-info,link
and then parses the files as part of the fingerprinting process.It seems every instance of macro generated code (e.g. via serde_derive) creates a
rustc-macro\ source\ code
entry into this file which when cargo tries to look up it can't find.Cargo issue: rust-lang/cargo#3094
The text was updated successfully, but these errors were encountered: