Failed to get crate data when compiling proc macro crate with --target #85847
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Meta
I also tried with rustc 1.54.0-nightly (b663c0f 2021-05-29), and I got the same error.
Reproduction
git clone https://github.com/Canop/lazy-regex.git cd lazy-regex rustup target add wasm32-unknown-unknown cargo build --target=wasm32-unknown-unknown
Error output
Details
The involved crate is a proc-macro : https://github.com/Canop/lazy-regex.git
There's no problem when not using
--target
.I reproduced the same problem with an app using it (broot) when compiling with a target (not just wasm), but not when compiling for the local implied target.
The text was updated successfully, but these errors were encountered: