rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
98.34k stars 12.72k forks source link

internal compiler error: encountered incremental compilation error with evaluate_obligation(8f355536e879b1da-8491299baef09943) #88285

Open apexys opened 3 years ago

apexys commented 3 years ago

So I read in https://github.com/rust-lang/rust/issues/84970 that you would still like to receive bug reports when this happens

When compiling our codebase https://git.geomar.de/digital-earth/digital-earth-viewer/-/tree/master/tileserver we from time to time get this problem:

PS C:\Users\Valentin Buck\Desktop\GEOMAR\digital-earth-viewer\tileserver> cargo run
    Blocking waiting for file lock on package cache
   Compiling digitalearthviewer v1.1.0-beta (C:\Users\Valentin Buck\Desktop\GEOMAR\digital-earth-viewer\tileserver)
error: internal compiler error: encountered incremental compilation error with evaluate_obligation(8f355536e879b1da-8491299baef09943)                                                                                            
  |
  = help: This is a known issue with the compiler. Run `cargo clean -p digitalearthviewer` or `cargo clean` to allow your project to compile
  = note: Please follow the instructions below to create a bug report with the provided information
  = note: See <https://github.com/rust-lang/rust/issues/84970> for more information

thread 'rustc' panicked at 'Found unstable fingerprints for evaluate_obligation(8f355536e879b1da-8491299baef09943): Ok(EvaluatedToOk)', /rustc/af140757b4cb1a60d107c690720311ba8e06e7de\compiler\rustc_query_system\src\query\plumbing.rs:644:13
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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.56.0-nightly (af140757b 2021-08-22) running on x86_64-pc-windows-msvc

note: compiler flags: -Z unstable-options -C opt-level=3 -C embed-bitcode=no -C codegen-units=16 -C debuginfo=2 -C debug-assertions=on -C incremental --crate-type bin

query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `warp::filter::and::AndFuture<warp::filter::and::And<warp::filter::and::And<warp::filter::and::And<warp::filter::and::And<warp::filters::any::Any, warp::path::Exact<warp::path::internal::Opaque<webserver::sample_points::__StaticPath>>>, warp::filter::FilterFn<[closure@warp::path::filter_segment<[closure@warp::path::param<std::string::String>::{closure#0}], (std::string::String,)>::{closure#0}]>>, warp::filter::FilterFn<[closure@warp::path::filter_segment<[closure@warp::path::param<std::string::String>::{closure#0}], (std::string::String,)>::{closure#0}]>>, warp::filter::FilterFn<[closure@warp::path::filter_segment<[closure@warp::path::param<f32>::{closure#0}], (f32,)>::{closure#0}]>>, warp::filter::FilterFn<[closure@warp::path::filter_segment<[closure@warp::path::param<f32>::{closure#0}], (f32,)>::{closure#0}]>>: std::marker::Sized`
#1 [is_sized_raw] computing whether `warp::filter::and::AndFuture<warp::filter::and::And<warp::filter::and::And<warp::filter::and::And<warp::filter::and::And<warp::filters::any::Any, warp::path::Exact<warp::path::internal::Opaque<webserver::sample_points::__StaticPath>>>, warp::filter::FilterFn<[closure@warp::path::filter_segment<[closure@warp::path::param<std::string::String>::{closure#0}], (std::string::String,)>::{closure#0}]>>, warp::filter::FilterFn<[closure@warp::path::filter_segment<[closure@warp::path::param<std::string::String>::{closure#0}], (std::string::String,)>::{closure#0}]>>, warp::filter::FilterFn<[closure@warp::path::filter_segment<[closure@warp::path::param<f32>::{closure#0}], (f32,)>::{closure#0}]>>, warp::filter::FilterFn<[closure@warp::path::filter_segment<[closure@warp::path::param<f32>::{closure#0}], (f32,)>::{closure#0}]>>` is `Sized`
end of query stack
error: could not compile `digitalearthviewer` due to previous error

I've seen this problem crop up repeatedly lately, but usually only the file webserver.rs and the crate epsg-geodetic-parameters.

Maybe this helps?

pierwill commented 2 years ago

@rustbot label +A-incr-comp