Closed
Description
Internal compiler error, panic, while installing a package.
I tried this code:
cargo install wasm-bindgen-cli
I expected to see this happen: it installs
Instead, this happened: failed to install, output:
-- snip --
Compiling wasm-bindgen-threads-xform v0.2.60
Compiling serde_json v1.0.50
Compiling docopt v1.1.0
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', src\librustc\hir\mod.rs:81:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.44.0-nightly (f509b26a7 2020-03-18) running on x86_64-pc-windows-msvc
note: compiler flags: -C opt-level=3 --crate-type lib
note: some of the compiler flags provided by cargo are hidden
Compiling rouille v3.0.0
Compiling wasm-bindgen-cli-support v0.2.60
error: could not compile `docopt`.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `wasm-bindgen-cli v0.2.60`, intermediate artifacts can be found at `C:\Users\nurbol\AppData\Local\Temp\cargo-install47ieKB`
Caused by:
build failed
Meta
Please note that building on the stable toolchain (rustc 1.42) is fine.
rustc --version --verbose
:
rustc 1.44.0-nightly (f509b26 2020-03-18)
binary: rustc
commit-hash: f509b26
commit-date: 2020-03-18
host: x86_64-pc-windows-msvc
release: 1.44.0-nightly
LLVM version: 9.0
Activity
jonas-schievink commentedon Apr 4, 2020
Please post the error message
anurbol commentedon Apr 4, 2020
@jonas-schievink I have updated the issue. Sorry for not doing that right away
jonas-schievink commentedon Apr 4, 2020
another duplicate of #70041