Skip to content

Internal Compiler Error while compiling diesel #79560

Closed
@weiznich

Description

@weiznich

Code

Diesel master

Meta

rustc --version --verbose:

rustc 1.50.0-nightly (349b3b324 2020-11-29)
binary: rustc
commit-hash: 349b3b324dade7ca638091db93ba08bbc443c63d
commit-date: 2020-11-29
host: x86_64-unknown-linux-gnu
release: 1.50.0-nightly

Last known working version: rust 1.50.0-nightly (b48cafd9e 2020-11-25) (Haven't tried the nightlies in between yet)

Error output

thread 'rustc' panicked at 'forcing query with already existing `DepNode`
- query-key: (DefId(0:1086 ~ diesel[f0f0]::expression::ValidGrouping), Some(IsAggregate#1483))
- dep-node: super_predicates_that_define_assoc_type(67abfa33ab7d90da-56b8cbe8d1ca79a9)', /rustc/349b3b324dade7ca638091db93ba08bbc443c63d\compiler\rustc_query_system\src\query\plumbing.rs:586:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic
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.50.0-nightly (349b3b324 2020-11-29) running on x86_64-pc-windows-msvc

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

query stack during panic:
#0 [explicit_predicates_of] computing explicit predicates of `type_impls::tuples::_::_::<impl expression::ValidGrouping<__GroupByClause> for (A, B, C)>`
#1 [predicates_defined_on] computing predicates of `type_impls::tuples::_::_::<impl expression::ValidGrouping<__GroupByClause> for (A, B, C)>`
end of query stack
error: could not compile `diesel`
Error: could not compile `diesel`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
Warning: thread 'rustc' panicked at 'forcing query with already existing `DepNode`
- query-key: (DefId(0:1098 ~ diesel[8909]::expression::ValidGrouping), Some(IsAggregate#3574))
- dep-node: super_predicates_that_define_assoc_type(10b7a81c445a7cf0-f4bea10f7f9b919e)', /rustc/349b3b324dade7ca638091db93ba08bbc443c63d\compiler\rustc_query_system\src\query\plumbing.rs:586:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

As this is the second regression for diesel in less then a week: Would it possible to add diesel to the compiler test suite to prevent breaking diesel again and again. I would like to use my free time for something else than reporting regression bugs every day 😉

@rustbot modify labels: +regression-from-beta-to-nightly

Metadata

Metadata

Assignees

Labels

A-incr-compArea: Incremental compilationA-query-systemArea: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)C-bugCategory: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.WG-incr-compWorking group: Incremental compilation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions