-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustc panic with inconsistent resolution for a macro
for proc macro imported different name for wasm target.
#64450
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
If cross-compilation is involved, then it might be a duplicate of #56935. |
@petrochenkov I had the same error with a different crate. It involves cross compilation, but as said by @thiolliere, this can be fixed by not including the Any chance that this can be fixed in the near future? Could we maybe help you fixing this? |
I'll look into fixing it this weekend or the next week. |
Nice, ty! :) |
This may be a slightly different issue from #56935, but the same workaround with adding |
I started investigating in #65026, but didn't get to ICEs themselves yet. |
metadata: Some crate loading cleanup So, my goal was to fix caching of loaded crates which is broken and causes ICEs like rust-lang#56935 or rust-lang#64450. While investigating I found that the code is pretty messy and likes to confuse various things that look similar but are actually different. This PR does some initial cleanup in that area, I hope to get to the caching itself a bit later.
metadata: Some crate loading cleanup So, my goal was to fix caching of loaded crates which is broken and causes ICEs like rust-lang#56935 or rust-lang#64450. While investigating I found that the code is pretty messy and likes to confuse various things that look similar but are actually different. This PR does some initial cleanup in that area, I hope to get to the caching itself a bit later.
494: Fixing the Wasm blocker for Parser r=kdy1 a=anurbol Rust has a [bug](rust-lang/rust#64450) when compiling a project for Wasm (with `--target wasm32-unknown-unknown` flag), these changes are a workaround. These changes are only supposed to fix the SWC Parser, not the whole SWC project. This is because I only need the Parser at the moment, also fixing the whole SWC Project would be a nightmare for me, a newbie in SWC. Maybe later. Co-authored-by: Nurbol Alpysbayev <anurbol@gmail.com>
Closing as a duplicate of #56935. |
Context
I compile with
cargo check --target=wasm32-unknown-unknown
for a project with a proc macro imported with a different name as such:and it fails with:
removing the dependency renames works:
Reproduce
use this repo: https://github.com/thiolliere/debug-inconsistence
and run
cargo check --target=wasm32-unknown-unknown
in the runtime crate.The text was updated successfully, but these errors were encountered: