Skip to content

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

Closed
@anurbol

Description

@anurbol

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

jonas-schievink commented on Apr 4, 2020

@jonas-schievink
Contributor

Please post the error message

anurbol

anurbol commented on Apr 4, 2020

@anurbol
Author

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

jonas-schievink

jonas-schievink commented on Apr 4, 2020

@jonas-schievink
Contributor

another duplicate of #70041

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jonas-schievink@anurbol

        Issue actions

          Internal compiler error when installing a package in nightly mode. · Issue #70778 · rust-lang/rust