rust-lang / rust

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

Happens frequently and have to clean everything and rebuild (very slow): `thread 'rustc' panicked at 'Found unstable fingerprints for predicates_of(opencv[3272]::opencv::hub::core::MatTraitConst): GenericPredicates { parent: None, predicates: [(Binder(TraitPredicate(<Self as opencv::prelude::MatTraitConst>), [])` #92613

Closed fzyzcjy closed 1 year ago

fzyzcjy commented 2 years ago

Code

really cannot find a MVE... but the context is:

Meta

rustc --version --verbose:

rustc 1.55.0 (c8dfcfe04 2021-09-06)
binary: rustc
commit-hash: c8dfcfe046a7680554bf4eb612bad840e7631c4b
commit-date: 2021-09-06
host: x86_64-apple-darwin
release: 1.55.0
LLVM version: 12.0.1

Error output

    error: internal compiler error: encountered incremental compilation error with predicates_of(opencv[3272]::opencv::hub::core::MatTraitConst)
      |
      = help: This is a known issue with the compiler. Run `cargo clean -p vision_utils_rs` 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 predicates_of(opencv[3272]::opencv::hub::core::MatTraitConst): GenericPredicates { parent: None, predicates: [(Binder(TraitPredicate(<Self as opencv::prelude::MatTraitConst>), []), /Users/tom/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.60.0/src/opencv/hub/core.rs:9680:1: 9680:24 (#0))] }', /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/compiler/rustc_query_system/src/query/plumbing.rs:624:9
    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.55.0 (c8dfcfe04 2021-09-06) running on x86_64-apple-darwin

    note: compiler flags: -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C incremental --crate-type staticlib

    note: some of the compiler flags provided by cargo are hidden

    query stack during panic:
    #0 [predicates_of] computing predicates of `opencv::prelude::MatTraitConst`
    #1 [typeck] type-checking `algo::binarization::parallel_calc_material`
    end of query stack
    error: could not compile `vision_utils_rs` due to previous error
Backtrace

``` N/A ```

Aaron1011 commented 2 years ago

This should be fixed in newer versions of Rust.

fzyzcjy commented 2 years ago

@Aaron1011 Hi do you mean stable 1.56.0? I use it in ios projects and seems that xcode's max compatible version is 1.55.0 (yet)....

Enselic commented 1 year ago

Triage: Can you still reproduce this ICE?

fzyzcjy commented 1 year ago

No (at least recently), thus I will close it, thanks