Skip to content

[ICE] Encountered errors resolving bounds after type-checking #77653

@tesuji

Description

@tesuji
Contributor

The below content was posted by @bkchr, I moved it into a separated issue to keep track of the ICE.


Hey, so I tried porting our code to compile with latest nightly and I almost got it working but ultimately it ended with an internal compiler error:

error: internal compiler error: compiler/rustc_trait_selection/src/traits/codegen/mod.rs:121:9: Encountered errors `[FulfillmentError(Obligation(predicate=TraitPredicate(<dyn sc_client_api::PrunableStateChangesTrieStorage<sp_runtime::generic::Block<sp_runtime::generic::Header<u32, sp_runtime::traits::BlakeTwo256>, sp_runtime::OpaqueExtrinsic>> as sp_state_machine::changes_trie::Storage<sp_runtime::traits::BlakeTwo256, u32>>), depth=0),Unimplemented)]` resolving bounds after type-checking

thread 'rustc' panicked at 'Box<Any>', compiler/rustc_errors/src/lib.rs:945: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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.49.0-nightly (98edd1fbf 2020-10-06) running on x86_64-unknown-linux-gnu

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type lib

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

error: aborting due to previous error

error: could not compile `node-testing`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

I created a branch that fails with this or a similar ICE when you run cargo test --all. You can find it here: https://github.com/paritytech/substrate/tree/bkchr-fix-for-latest-nightly

Originally posted by @bkchr in #77638 (comment)

@rustbot modify labels: regression-from-stable-to-nightly E-needs-mcve A-associated-items

Activity

added
C-bugCategory: This is a bug.
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Oct 7, 2020
added
A-associated-itemsArea: Associated items (types, constants & functions)
E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
on Oct 7, 2020
self-assigned this
on Oct 7, 2020
changed the title [-]Encountered errors resolving bounds after type-checking[/-] [+][ICE] Encountered errors resolving bounds after type-checking[/+] on Oct 7, 2020
spastorino

spastorino commented on Oct 7, 2020

@spastorino
Member

@rustbot ping cleanup

Would be nice to find the regression and an MCVE.

rustbot

rustbot commented on Oct 7, 2020

@rustbot
Collaborator
apiraino

apiraino commented on Oct 8, 2020

@apiraino
Contributor

Assigning P-critical as per linked issue, Prioritization Working Group discussion, removing I-prioritize.

added and removed
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
on Oct 8, 2020

22 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-associated-itemsArea: Associated items (types, constants & functions)C-bugCategory: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ICEBreaker-Cleanup-CrewHelping to "clean up" bugs with minimal examples and bisectionsP-criticalCritical priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @spastorino@steffahn@smmalis37@bkchr@apiraino

    Issue actions

      [ICE] Encountered errors resolving bounds after type-checking · Issue #77653 · rust-lang/rust