Skip to content

Internal compiler error when installing a package in nightly mode. #70778

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

Closed
anurbol opened this issue Apr 4, 2020 · 3 comments
Closed

Internal compiler error when installing a package in nightly mode. #70778

anurbol opened this issue Apr 4, 2020 · 3 comments

Comments

@anurbol
Copy link

anurbol commented Apr 4, 2020

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

@jonas-schievink
Copy link
Contributor

Please post the error message

@anurbol
Copy link
Author

anurbol commented Apr 4, 2020

@jonas-schievink I have updated the issue. Sorry for not doing that right away

@jonas-schievink
Copy link
Contributor

another duplicate of #70041

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants