rustc 1.51.0-nightly (a62a76047 2021-01-13)
binary: rustc
commit-hash: a62a76047ea24aad7639f14eb3ce0e620b77bdb7
commit-date: 2021-01-13
host: x86_64-unknown-linux-gnu
release: 1.51.0-nightly
error: internal compiler error: compiler/rustc_metadata/src/rmeta/decoder.rs:1189:17: get_optimized_mir: missing MIR for `DefId(18:48 ~ async_executor[37d1]::{impl#4}::run::{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 `async_executor::Executor::<'a>::run::{closure#0}`
#1 [layout_raw] computing layout of `[static generator@async_executor::Executor::run<(), futures_lite::future::Pending<()>>::{closure#0} for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6> {std::future::ResumeTy, &'r async_executor::Executor<'s>, futures_lite::future::Pending<()>, async_executor::Runner<'t0>, impl futures_lite::Future, futures_lite::future::Or<futures_lite::future::Pending<()>, impl futures_lite::Future>, ()}]`
end of query stack
error: aborting due to previous error
error: could not compile `smol`
I'm getting an ICE when running a nightly version of clippy on https://github.com/smol-rs/smol. I bisected nightly toolchains, and the problem is present in +nightly-2021-01-14, and absent in +nightly-2021-01-13.
Meta
rustc --version --verbose:Error output
Backtrace