Skip to content

rustc panicked at Box<Any> #6592

Closed
Closed
@tobin-crypto

Description

@tobin-crypto

Reporting this because its requested in the error output, I do not know what to make of it and cannot reproduce it locally (CI runs on Azure). A second run of CI jobs did not hit this same error. This is the output, please feel free to just close this issue if this is not useful. Thanks for your work on Clippy, I use this tool all day every day :)

cargo +nightly clippy -Zunstable-options
  cargo +nightly clippy -Zunstable-options
  shell: /bin/bash -e {0}
  env:
    RUSTC_WRAPPER: /home/azureuser/.cargo/bin/sccache
    SSH_AUTH_SOCK: /tmp/ssh-lXe0OO2kTAaT/agent.8976
    SSH_AGENT_PID: 8977
    Checking untrusted v0.1.0 (/home/azureuser/runners/actions-runner/_work/sgx-comm/sgx-comm/untrusted)
error: internal compiler error: compiler/rustc_metadata/src/rmeta/decoder.rs:1189:17: get_optimized_mir: missing MIR for `DefId(41:7238 ~ tokio[4eeb]::sync::mutex::{impl#6}::lock::{closure#0})`

thread 'rustc' panicked at 'Box<Any>', compiler/rustc_errors/src/lib.rs:958:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new

note: Clippy version: clippy 0.1.51 (a62a760 2021-01-13)

query stack during panic:
#0 [optimized_mir] optimizing MIR for `tokio::sync::Mutex::<T>::lock::{closure#0}`
#1 [layout_raw] computing layout of `[static generator@tokio::sync::Mutex<bool>::lock::{closure#0} for<'r, 's> {std::future::ResumeTy, &'r tokio::sync::Mutex<bool>, impl futures::Future, ()}]`
end of query stack
error: aborting due to previous error

error: could not compile `untrusted`

To learn more, run the command again with --verbose.
Error: Process completed with exit code 101.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions