-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ICE get_optimized_mir: missing MIR for DefId(...)
#6588
Comments
Vlad-Shcherbina
added
C-bug
Category: Clippy is not doing the correct thing
I-ICE
Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
labels
Jan 14, 2021
Another case stemming from Log + Backtrace
|
Also seeing error: internal compiler error: compiler/rustc_metadata/src/rmeta/decoder.rs:1189:17: get_optimized_mir: missing MIR for `DefId(35:2152 ~ actix_web[356a]::test::call_service::{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 `actix_web::test::call_service::{closure#0}`
#1 [layout_raw] computing layout of `[static generator@actix_web::test::call_service<actix_web::app_service::AppInitService<actix_web::app_service::AppRouting, actix_web::dev::Body>, actix_http::Request<std::pin::Pin<std::boxed::Box<dyn futures_core::stream::Stream<Item = std::result::Result<actix_web::web::Bytes, actix_web::error::PayloadError>>>>>, actix_web::dev::Body, actix_web::Error>::{closure#0} for<'r> {std::future::ResumeTy, &'r mut actix_web::app_service::AppInitService<actix_web::app_service::AppRouting, actix_web::dev::Body>, actix_http::Request<std::pin::Pin<std::boxed::Box<dyn futures_core::stream::Stream<Item = std::result::Result<actix_web::web::Bytes, actix_web::error::PayloadError>>>>>, std::pin::Pin<std::boxed::Box<dyn std::future::Future<Output = std::result::Result<actix_web::dev::ServiceResponse, actix_web::Error>>>>, ()}]`
end of query stack |
Got a similar error
|
Thanks for your reports! It seems to be related with rust-lang/rust#81000. |
It seems to be fixed, so I closing this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To reproduce
Run
cargo clippy
on the following library:Version info
This started happening after I updated to the recent nightly.
The nightly from two weeks ago was fine.
Error output
With backtrace
The text was updated successfully, but these errors were encountered: