Repository navigation
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Description
Code
I tried this code:
git clone https://github.com/weiznich/wundergraph
cd wundergraph
git checkout 5752de6
cd wundergraph # That one is important as well
cargo +stable check
I expected to see this happen: Code compiles, is it does with rust 1.64
Instead, this happened: Compiler emits new overflow error
error[E0275]: overflow evaluating the requirement `<R as HasTable>::Table`
--> wundergraph/src/query_builder/mutations/delete.rs:35:15
|
35 | R::Table: HandleDelete<R, D, DB, Ctx> + 'static,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`wundergraph`)
= note: required for `<<R as HasTable>::Table as AsQuery>::Query` to implement `FilterDsl<_>`
note: required for `<R as HasTable>::Table` to implement `HandleDelete<R, D, DB, Ctx>`
--> wundergraph/src/query_builder/mutations/delete.rs:69:24
|
69 | impl<L, K, DB, Ctx, T> HandleDelete<L, K, DB, Ctx> for T
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^
error[E0275]: overflow evaluating the requirement `<Self as AsQuery>::Query`
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`wundergraph`)
= note: required for `Self` to implement `FilterDsl<_>`
note: required for `Self` to implement `HandleDelete<L, K, DB, Ctx>`
--> wundergraph/src/query_builder/mutations/delete.rs:69:24
|
69 | impl<L, K, DB, Ctx, T> HandleDelete<L, K, DB, Ctx> for T
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^
error[E0275]: overflow evaluating the requirement `<R as HasTable>::Table`
--> wundergraph/src/query_builder/mutations/update.rs:30:15
|
30 | R::Table: HandleUpdate<R, U, DB, Ctx> + 'static,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`wundergraph`)
= note: required for `<<R as HasTable>::Table as AsQuery>::Query` to implement `FilterDsl<_>`
note: required for `<R as HasTable>::Table` to implement `HandleUpdate<R, U, DB, Ctx>`
--> wundergraph/src/query_builder/mutations/update.rs:68:24
|
68 | impl<L, U, DB, Ctx, T> HandleUpdate<L, U, DB, Ctx> for T
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^
error[E0275]: overflow evaluating the requirement `<Self as AsQuery>::Query`
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`wundergraph`)
= note: required for `Self` to implement `FilterDsl<_>`
note: required for `Self` to implement `HandleUpdate<L, U, DB, Ctx>`
--> wundergraph/src/query_builder/mutations/update.rs:68:24
|
68 | impl<L, U, DB, Ctx, T> HandleUpdate<L, U, DB, Ctx> for T
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^
For more information about this error, try `rustc --explain E0275`.
error: could not compile `wundergraph` due to 4 previous errors
Version it worked on
It most recently worked on: 1.64
Version with regression
rustc --version --verbose:
rustc 1.65.0 (897e37553 2022-11-02)
binary: rustc
commit-hash: 897e37553bba8b42751c67658967889d11ecd120
commit-date: 2022-11-02
host: x86_64-unknown-linux-gnu
release: 1.65.0
LLVM version: 15.0.0
@rustbot modify labels: +regression-from-stable-to-stable -regression-untriaged
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Activity
weiznich commentedon Nov 12, 2022
cargo bisect-rustpoints to the following says that the regression was introduced innightly-2022-08-23It points to the following commit range: c0941df to 015a824
Github compare view
compiler-errors commentedon Nov 12, 2022
Very likely to have regressed in #100757, thus related to #103274 probably.
weiznich commentedon Nov 14, 2022
As #103274 was reported before the release of 1.65 as regression: Are there any plans to fix this or is this expected breakage due to a "bug-fix"?
apiraino commentedon Nov 23, 2022
WG-prioritization assigning priority (Zulip discussion).
@rustbot label -I-prioritize +P-high
Auto merge of rust-lang#104610 - ouz-a:revert-overflow, r=compiler-er…
weiznich commentedon Nov 29, 2022
@compiler-errors This code reproduces the issue. I'm not sure if that's the most minimal version you can get, but at least it's nothing that depends on external crates:
Can you give some pointer where that should be added as regression test?
compiler-errors commentedon Nov 29, 2022
Thanks @weiznich, please add it as a UI test: https://rustc-dev-guide.rust-lang.org/tests/ui.html
Somewhere in like
src/test/ui/traitsorsrc/test/ui/associated-typesor something like that.Add a regression test for rust-lang#104322
Rollup merge of rust-lang#105081 - weiznich:regression_test_for_10432…
Rollup merge of rust-lang#105081 - weiznich:regression_test_for_10432…
pnkfelix commentedon Dec 9, 2022
resolved by PR #104610 and regression test added in PR #105081 (part of rollup PR #105095)
Auto merge of rust-lang#104610 - ouz-a:revert-overflow, r=compiler-er…